Utc

Utc

Stores a timestamp as nanoseconds since UNIX EPOCH

now! : {} => Utc

Duration since UNIX EPOCH

to_millis_since_epoch : Utc -> I128

Convert Utc timestamp to milliseconds

from_millis_since_epoch : I128 -> Utc

Convert milliseconds to Utc timestamp

to_nanos_since_epoch : Utc -> I128

Convert Utc timestamp to nanoseconds

from_nanos_since_epoch : I128 -> Utc

Convert nanoseconds to Utc timestamp

delta_as_millis : Utc, Utc -> U128

Calculate milliseconds between two Utc timestamps

delta_as_nanos : Utc, Utc -> U128

Calculate nanoseconds between two Utc timestamps

to_iso_8601 : Utc -> Str

Convert Utc timestamp to ISO 8601 string Example: 2023-11-14T23:39:39Z