---
url: https://docs.moqtail.dev/ts/api/model/classes/Timestamp.md
---
# Class: Timestamp

In Timescale units when one applies, else wall-clock µs since the Unix epoch (LOC 2.3.1.1).

## Constructors

### Constructor

> **new Timestamp**(`timestamp`): `Timestamp`

#### Parameters

##### timestamp

`bigint`

#### Returns

`Timestamp`

## Properties

### timestamp

> `readonly` **timestamp**: `bigint`

***

### TYPE

> `readonly` `static` **TYPE**: [`Timestamp`](../enumerations/LOCPropertyId.md#timestamp) = `LOCPropertyId.Timestamp`

## Methods

### toKeyValuePair()

> **toKeyValuePair**(): [`KeyValuePair`](KeyValuePair.md)

#### Returns

[`KeyValuePair`](KeyValuePair.md)

***

### toMicros()

> **toMicros**(`timescale?`): `number`

`timescale` is the object's Timescale, else the track's (LOC 2.3.1.2).

#### Parameters

##### timescale?

`bigint`

#### Returns

`number`

***

### fromKeyValuePair()

> `static` **fromKeyValuePair**(`pair`): `Timestamp` | `undefined`

#### Parameters

##### pair

[`KeyValuePair`](KeyValuePair.md)

#### Returns

`Timestamp` | `undefined`
