Instant

newtype Instant: long

UTC instant stored as milliseconds since the Unix epoch.

Instance members

Instant
nuint

Formats an instant as UTC ISO text with a trailing Z.

OffsetDateTime

Converts this instant to a date and time at a fixed UTC offset.

long
getUnixMs()
property

Gets Unix milliseconds.

long

Gets Unix seconds, truncated toward zero.

DateTime

Converts this instant to a UTC date and time.

bool

Returns true when this value is not INVALID.

TimeSpan

Gets the duration between an earlier instant and this instant.

Instant

Static members

Instant

Creates an instant from Unix milliseconds.

Instant

Creates an instant from Unix seconds.

const Instant

Invalid instant sentinel.

const Instant

Unix epoch instant.

Instant

Gets the current UTC instant.

Generated with campc v0.4.0-preview.1+d50446ef951a6ed675f7086cf093dbc993f0041b.