# FormatDuration(TimeSpan)

> Formats a given TimeSpan object as a string in the format "HH:mm:ss".

## Definition

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

```csharp
public static string FormatDuration(TimeSpan timeSpan)
```

### Parameters

**** (\[TimeSpan]\(https\://learn.microsoft.com/dotnet/api/system.timespan)): The TimeSpan object to format.

### Returns

| Type                                                           | Description                                 |
| -------------------------------------------------------------- | ------------------------------------------- |
| [string](https://learn.microsoft.com/dotnet/api/system.string) | A string representation of the input value. |
