# 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/7000.0/script-reference/unity/integertime.md)
* **Assembly:** UnityEngine.CoreModule

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

### Parameters

**** (\[RationalTime]\(/engine/7000.0/script-reference/unity/integertime/rationaltime)): The value to convert.**** (\[TicksPerSecond]\(/engine/7000.0/script-reference/unity/integertime/rationaltime/tickspersecond)): The new Rate.

### Returns

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