# MediaTime

> Creates a time value with an integer number of seconds, using 1Hz for the rate.

## Definition

* **Type:** Constructor
* **Namespace:** [UnityEditor.Media](/engine/6000.7/script-reference/unityeditor/media.md)
* **Assembly:** UnityEditor

## MediaTime(long)

Creates a time value with an integer number of seconds, using 1Hz for the rate.

```csharp
public MediaTime(long seconds)
```

### Parameters

**** (\[long]\(https\://learn.microsoft.com/dotnet/api/system.int64)): The number of seconds in the time value.

## MediaTime(long, uint, uint)

Creates a time value for a specified sample count and rate.

```csharp
public MediaTime(long count, uint rateNumerator, uint rateDenominator = 1)
```

### Parameters

**** (\[long]\(https\://learn.microsoft.com/dotnet/api/system.int64)): The sample count for the time value.**** (\[uint]\(https\://learn.microsoft.com/dotnet/api/system.uint32)): Numerator for the rate used by the time value.**** (\[uint]\(https\://learn.microsoft.com/dotnet/api/system.uint32)): Denominator for the rate used by the time value.
