# Formatting

> Methods for consistently formatting values

## Definition

* **Type:** Class
* **Namespace:** [Unity.ProjectAuditor.Editor.Utils](/engine/6000.7/script-reference/unity/projectauditor/editor/utils.md)
* **Assembly:** UnityEditor

```csharp
public static class Formatting
```

## Static Methods

| Method                                                                                                                         | Description                                                                         |
| ------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------- |
| [FormatDateTime](/engine/6000.7/script-reference/unity/projectauditor/editor/utils/formatting/formatdatetime.md)               | Formats a given DateTime object as a string in the format "yyyy/MM/dd HH:mm".       |
| [FormatDuration](/engine/6000.7/script-reference/unity/projectauditor/editor/utils/formatting/formatduration.md)               | Formats a given TimeSpan object as a string in the format "HH:mm:ss".               |
| [FormatDurationWithMs](/engine/6000.7/script-reference/unity/projectauditor/editor/utils/formatting/formatdurationwithms.md)   | Formats a given TimeSpan object as a string in the format "HH:mm:ss".               |
| [FormatFloat](/engine/6000.7/script-reference/unity/projectauditor/editor/utils/formatting/formatfloat.md)                     | Formats a given float as a string.                                                  |
| [FormatFramerate](/engine/6000.7/script-reference/unity/projectauditor/editor/utils/formatting/formatframerate.md)             | Formats a given float framerate as a string in the format "X fps".                  |
| [FormatHz](/engine/6000.7/script-reference/unity/projectauditor/editor/utils/formatting/formathz.md)                           | Formats a given frequency as a string in the format "X Hz" or "X kHz".              |
| [FormatLengthInSeconds](/engine/6000.7/script-reference/unity/projectauditor/editor/utils/formatting/formatlengthinseconds.md) | Formats a given float duration as a string in the format "X.XXX s".                 |
| [FormatPercentage](/engine/6000.7/script-reference/unity/projectauditor/editor/utils/formatting/formatpercentage.md)           | Formats a decimal number as a percentage with a specified number of decimal places. |
| [FormatSize](/engine/6000.7/script-reference/unity/projectauditor/editor/utils/formatting/formatsize.md)                       | Formats a given size in bytes as a string in the format "X bytes".                  |
| [FormatTime](/engine/6000.7/script-reference/unity/projectauditor/editor/utils/formatting/formattime.md)                       | Formats a given time value as a string in the format "X ms", "X s", or "X min"      |
