Skip to content

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 = LOCPropertyId.Timestamp

Methods ​

toKeyValuePair() ​

toKeyValuePair(): KeyValuePair

Returns ​

KeyValuePair


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

Returns ​

Timestamp | undefined