Expand description
Functions§
- iso8601
- Formats Unix seconds as an ISO-8601 UTC string (
YYYY-MM-DDTHH:MM:SSZ). - now_
unix - The current time as Unix seconds (the reference for
relative). - parse_
iso8601 - Parses an ISO-8601 timestamp (as produced by
iso8601) back to Unix seconds, for computing relative display from the stored value. - relative
- Renders the gap from
then_unixtonow_unixas a single largest unit. Times in the future (or under a minute old) render asjust now.