summaryrefslogtreecommitdiff
path: root/tests/cpydiff/module_array_constructor.py
diff options
context:
space:
mode:
authorrobert-hh <robert@hammelrath.com>2021-06-12 08:19:07 +0200
committerDamien George <damien@micropython.org>2021-06-12 23:15:05 +1000
commitfd4eec5555f93950ee14a45851d13ab7b781077e (patch)
treedb5806f6ef8e9264d1c702e4f4e781b732e0bc1d /tests/cpydiff/module_array_constructor.py
parent37d01d4be3ab5d86e6d4042ccf140cd13a55ac4c (diff)
mimxrt/machine_rtc: Change RTC.datetime() tuple to match other ports.
This change moves the datetime tuple format back to the one used by all the other ports: (year, month, day, weekday, hour, minute, second, microsecond) Weekday is a number between 0 and 6, with 0 assigned to Monday. It has to be provided when setting the RTC with datetime(), but will be ignored on entry and calculated when needed. The weekday() method was removed, since that is now again a part of the datetime tuple. The now() method was updated so it continues to return a tuple that matches CPython's datetime module.
Diffstat (limited to 'tests/cpydiff/module_array_constructor.py')
0 files changed, 0 insertions, 0 deletions