nerves_time v0.1.0 Nerves.Time
Nerves.Time
keeps the system clock on Nerves
devices in sync when connected to the network and close to in sync when
disconnected. It’s especially useful for devices lacking a Battery-backed
real-time clock and will advance
the clock at startup to a reasonable guess.
Link to this section Summary
Functions
Check whether NTP is synchronized with the configured NTP servers
Link to this section Functions
Link to this function
is_synchronized()
Check whether NTP is synchronized with the configured NTP servers.
It’s possible that the time is already set correctly when this returns false. Nerves.Time decides that NTP is synchronized when ntpd sends a notification that the device’s clock stratum is 4 or less.