Skip to main content

Module time

Module time 

Source
Expand description

Time-related functions.

Structs§

FormattedTimestamp
A Timestamp to be written in a TimestampFormat, returned by Timestamp::format.
TimeZone
A time zone, for writing a Timestamp as local time.
Timestamp
A point in time, with nanosecond precision.

Enums§

TimestampFormat
A format for writing a Timestamp.

Functions§

get_coarse_unix_timestamp
Get the current coarse Unix timestamp, in seconds.
get_unix_timestamp
Get the current Unix timestamp, in seconds.
get_unix_timestamp_nanos
Get the current Unix timestamp, in nanoseconds.
parse_compact_utc_nanos
Parses a timestamp written in TimestampFormat::CompactUtcNanos into nanoseconds since the Unix epoch.