Expand description
The host’s local IANA timezone, resolved dynamically, and the wall clock an RFC-3339 timestamp reads as in it. A generic OS-env probe shared by the usage scan’s day-bucketing, the SCHEDULES schedule formatter and the turn rows a view draws from a transcript.
Re-exports§
use time::format_description::well_known::Rfc3339;🔒use time_tz::OffsetDateTimeExt;🔒use time_tz::Tz;🔒use time_tz::timezones;🔒
Functions§
- local_
clock - An RFC-3339 instant the CLI wrote, as the reader’s own wall clock:
HH:MM:SSfor today’s, the date too for anything older, because a turn read from a transcript can be weeks old and a bare time would read as today.Nonefor a string that does not parse, so a malformed row draws no clock rather than a fabricated one. - millis_
between - The milliseconds from one RFC-3339 instant the CLI wrote to another.
Noneunless both parse and the second is not earlier than the first. - system_
timezone - The OS-configured IANA timezone, read dynamically. Uses
iana-time-zone(multithread-safe on Unix, unliketime::UtcOffset::current_local_offset, which errors in a threaded process). Falls back to UTC with a warn only when the zone can’t be resolved - the rare exception, so “today” tracks the user’s wall clock.