---
title: Convert(RationalTime, TicksPerSecond)
product: Unity Editor
version: '6000.3'
latest_version: '7000.0'
status: This page documents version 6000.3. The latest version is 7000.0.
canonical: https://docs.unity.com/en-us/engine/6000.3/script-reference/unity/integertime/rationaltimeextensions/convert
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/integertime/rationaltimeextensions/convert.md
last_updated: 2026-09-14
generated_at: 2026-11-15T03:17:54.507Z
locale: en-us
---

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

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

### Parameters

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

### Returns

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