Module time

Module time 

Source
Expand description

time: read, set, or clear the device’s wall clock (PROP_TIME, PROP_TZ_OFFSET).

The clock is not persisted — an epoch written to flash accumulates unbounded error while the device is off — so it comes back from a real source or not at all. The time zone is persisted: where a device is meant to be is known even when the time is not.

Structs§

TzOffsetArg
A time-zone offset in minutes east of UTC.

Enums§

TimeOp
TzOp

Functions§

format_civil 🔒
format_tz
Render an offset the way it is written, so a mistyped one is visible as a zone rather than as a minute count nobody checks.
format_utc 🔒
host_epoch 🔒
This host’s wall clock as a Unix second count.
host_tz_offset 🔒
This host’s current UTC offset, in minutes east.
parse_part 🔒
report_set 🔒
run