Skip to main content

Module times

Module times 

Source
Expand description

Times in the CLI: reading --for and showing a moment in UTC and local time (see archive/PROJECT.md, Web UI and CLI: times and time zones).

--for without an offset is UTC, with a warning naming the moment taken; an explicit offset is used as given. Every time shown to a person appears twice, UTC and the machine’s zone (2026-10-15 03:00 UTC (05:00 CEST)); JSON output has UTC only.

Structs§

ForTime
A moment read from --for.

Functions§

local_zone
The machine’s time zone: TZ when set and known, else the system’s, else UTC.
parse_for
Reads a --for value: an RFC 3339 / ISO 8601 date-time with an offset, or one without (UTC), or a date (midnight UTC).
parse_time_flag
Reads a moment given as flag (--from, --to) as parse_for reads --for.
show
A moment in UTC and in local, e.g. 2026-10-15 03:00 UTC (05:00 CEST); the local date is shown only when it differs, and the local part is left out when local is UTC.
show_seconds
As show, always with seconds (03:00:00): moments in a column line up (the UI’s run lists, where whole-minute planned times were shorter than the rest).
show_short
A moment in short form, where space matters: UTC, then the local zone’s offset from UTC at that moment, e.g. 2026-01-01 00:00Z (local:+1h), 2026-10-15 01:00Z (local:-4h), 2026-10-15 03:00Z (local:+5h30m); no offset part when it is zero.
trigger_text
A trigger as people write it: 0 3 * * * (Europe/Warsaw), every 1h, catchup, @daily, 2025-12-31 23:00Z (local:+1h).. (its window, either end open), once at …, -; times in UTC with local’s offset. trigger is a DAG’s trigger in DAG JSON.