summaryrefslogtreecommitdiff
path: root/py/stackctrl.h
diff options
context:
space:
mode:
authorrobert-hh <robert@hammelrath.com>2021-05-20 16:16:25 +0200
committerDamien George <damien@micropython.org>2021-06-03 15:24:04 +1000
commit2f365d234e9e985710a174c05091054c011e37d7 (patch)
tree33598fc1f41dea98951621ba76b978ca84371722 /py/stackctrl.h
parentd79105d7c0f68e65ff175b752d9895241e355c08 (diff)
mimxrt/machine_rtc: Add the RTC class to the machine module.
Initial version, using the LP RTC clock. It provides setting the date and time with rtc.init() or rtc.datetime(), and reading the date and time with rtc.datetime() or rtc.now(). The method weekday() reports the weekday of the current date. It starts with 0 for Monday. The tuple order for datetime() and now() matches the CPython sequence: (year, month, day, hour, minute, second, microsecond, TZ). TZ is ignored and reported as None. Microsecond is provided at a best effort. If a battery is not supplied, the default boot date/time is 1970/1/1 0:0:0. With a battery, the clock continues to run even when the board is not powered. The clock is quite precise. If not, using rtc.calibration() may help.
Diffstat (limited to 'py/stackctrl.h')
0 files changed, 0 insertions, 0 deletions