timekeep – machine RTC wrapper

This module and its class TimeKeeper are used by the NTP daemon to keep the board’s time synchronized with the world’s clock.

This module is not intended to be used by the custom code, except for the uptime query:

from timekeep import tkeep
uptime_seconds = tkeep.uptime()
uptime_string = tkeep.uptime(isbin=False)