diff options
| author | robert-hh <robert@hammelrath.com> | 2022-03-14 20:38:46 +0100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2022-04-11 12:25:23 +1000 |
| commit | b70b8ce3e4f213e297b4438dbfca7412525a3785 (patch) | |
| tree | 42690990d707314315357bb1b8ba28bc44bafa46 /tools/pyboard.py | |
| parent | e3030f74361c5e930107aaf973963447ad36575a (diff) | |
mimxrt/machine_rtc: Start RTC at boot and set datetime if not set.
Changes in this commit:
- Start the RTC Timer at system boot. Otherwise time.time() will advance
only if an RTC() object was created.
- Set the time to a more recent date than Jan 1, 1970, if not set. That is
2013/10/14, 19:53:11, MicroPython's first commit.
- Compensate an underflow in in timeutils_seconds_since_2000(), called by
time.time(), if the time is set to a pre-2000 date.
Diffstat (limited to 'tools/pyboard.py')
0 files changed, 0 insertions, 0 deletions
