Skip to content

getTime

Returns the instant represented by this value.

1
myDateTimeOffset.getTime():number

Returns

Milliseconds since the Unix epoch, as JavaScript Date#getTime returns.

Remarks

Values with different offsets can be compared directly, because the result does not depend on the offset.