Utc

Utc

Stores a timestamp as nanoseconds since UNIX EPOCH

now : Task Utc *

Duration since UNIX EPOCH

toIso8601Str : Utc -> Str

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

toMillisSinceEpoch : Utc -> I128

Convert Utc timestamp to milliseconds

fromMillisSinceEpoch : I128 -> Utc

Convert milliseconds to Utc timestamp

toNanosSinceEpoch : Utc -> I128

Convert Utc timestamp to nanoseconds

fromNanosSinceEpoch : I128 -> Utc

Convert nanoseconds to Utc timestamp

deltaAsMillis : Utc, Utc -> U128

Calculate milliseconds between two Utc timestamps

deltaAsNanos : Utc, Utc -> U128

Calculate nanoseconds between two Utc timestamps