# Convert(RationalTime, TicksPerSecond)

> Converts a RationalTime from one rate to another. This is lossless unless it triggers an overflow.

## Definition

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

```csharp
public static RationalTime Convert(this RationalTime time, RationalTime.TicksPerSecond rate)
```

### Parameters

**** (\[RationalTime]\(/engine/6000.5/script-reference/unity/integertime/rationaltime)): **** (\[TicksPerSecond]\(/engine/6000.5/script-reference/unity/integertime/rationaltime/tickspersecond)):&#x20;

### Returns

| Type                                                                              | Description                                                                                    |
| --------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
| [RationalTime](/engine/6000.5/script-reference/unity/integertime/rationaltime.md) | A new instance of RationalTime representing as closely as possible the same number of seconds. |
