# ToString

> Returns a string representation of the time.

## Definition

* **Type:** Method
* **Namespace:** [Unity.IntegerTime](/engine/6000.7/script-reference/unity/integertime.md)
* **Assembly:** UnityEngine.CoreModule

## ToString()

Returns a string representation of the time.

```csharp
public override readonly string ToString()
```

### Returns

| Type                                                           | Description |
| -------------------------------------------------------------- | ----------- |
| [string](https://learn.microsoft.com/dotnet/api/system.string) |             |

## ToString(string, IFormatProvider)

Returns a string representation of the time.

```csharp
public readonly string ToString(string format, IFormatProvider formatProvider)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): **** (\[IFormatProvider]\(https\://learn.microsoft.com/dotnet/api/system.iformatprovider)):&#x20;

### Returns

| Type                                                           | Description |
| -------------------------------------------------------------- | ----------- |
| [string](https://learn.microsoft.com/dotnet/api/system.string) |             |
