Skip to main content

Module clock_sync

Module clock_sync 

Source
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§

ClockSync
Combines NTP synchronization with a local clock and tick events.
ClockSyncStatic
Resources needed to construct ClockSync.
ClockSyncTick
Tick event emitted by ClockSync.
UnixSeconds
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.