Module relay_common::time
source · Expand description
Utilities to deal with date-time types. (DateTime, Instant, SystemTime, etc)
Structs§
- An error returned from parsing
UnixTimestamp
. - A unix timestamp (full seconds elapsed since 1970-01-01 00:00 UTC).
Functions§
- Returns the positive number of milliseconds contained by this
Duration
asf64
. - Returns the number of milliseconds contained by this
Duration
asf64
. - Converts an
Instant
into aDateTime
. - Converts an
Instant
into aSystemTime
.