Skip to main content

Module time

Module time 

Source
Expand description

Minimal RFC 3339 timestamp formatter from SystemTime.

We only need UTC output with a trailing Z (no timezone offsets, no sub-second precision) — vexctl accepts both forms. Doing this by hand avoids a chrono/jiff dependency for ~30 lines of arithmetic.

Functions§

format_unix_secs_rfc3339
Format an absolute UNIX-epoch second count as RFC 3339 UTC.
now_rfc3339
Format the current time as RFC 3339 in UTC, e.g. 2024-05-24T12:34:56Z.