Available on crate feature
wifi and target_os=none only.Expand description
A device abstraction that combines time sync with a local clock.
See ClockSync for the full usage example.
Structs§
- Clock
Sync - Combines NTP synchronization with a local clock and tick events.
- Clock
Sync Static - Resources needed to construct
ClockSync. - Clock
Sync Tick - Tick event emitted by
ClockSync. - Unix
Seconds - Units-safe wrapper for Unix timestamps (seconds since 1970-01-01 00:00:00 UTC).
Constants§
- ONE_DAY
- Duration representing one day (24 hours).
- ONE_
MINUTE - Duration representing one minute (60 seconds).
- ONE_
SECOND - Duration representing one second.
Functions§
- h12_m_s
- Extract hour (12-hour format), minute, second from
OffsetDateTime.