Skip to main content

Module time

Module time 

Source
Expand description

ISO 8601 timestamp helpers with no external crate dependency.

Exposed at the library level so every Gitway binary (the main CLI plus the gitway-keygen and gitway-add shims) can emit the same timestamp format in structured JSON output and single-line diagnostic records.

Functionsยง

epoch_secs_to_iso8601
Converts a Unix timestamp (seconds since 1970-01-01T00:00:00Z) to ISO 8601.
now_iso8601
Returns the current UTC time as an ISO 8601 string (e.g. 2026-04-12T14:30:00Z).