Converts signed Unix seconds, checking the UTC year range.
Signature
timestamp_from_seconds :: (value: s64) -> (Timestamp, Time_Error)
instant, error := timestamp_from_seconds(-1);
assert(error.kind == .NONE && instant.seconds == -1);Converts signed Unix seconds, checking the UTC year range.
timestamp_from_seconds :: (value: s64) -> (Timestamp, Time_Error)
instant, error := timestamp_from_seconds(-1);
assert(error.kind == .NONE && instant.seconds == -1);