summaryrefslogtreecommitdiffstatshomepage
path: root/docs/mimxrt/quickref.rst
diff options
context:
space:
mode:
authorrobert-hh <robert@hammelrath.com>2023-01-28 10:12:49 +0100
committerDamien George <damien@micropython.org>2024-12-19 16:00:15 +1100
commitb5de529ffc17dd02e24c3f2b14e230eefe42dc7a (patch)
treef463739cbf994fd6dd585386fb146379349fceae /docs/mimxrt/quickref.rst
parente323da729101c9fe626b5b08cafef2dbdbb70441 (diff)
downloadmicropython-b5de529ffc17dd02e24c3f2b14e230eefe42dc7a.tar.gz
micropython-b5de529ffc17dd02e24c3f2b14e230eefe42dc7a.zip
docs: Fix the quickref documentation of rtc.datetime().
Such that it matches the implementation and the documentation of the `machine.RTC` class. Signed-off-by: robert-hh <robert@hammelrath.com>
Diffstat (limited to 'docs/mimxrt/quickref.rst')
-rw-r--r--docs/mimxrt/quickref.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/mimxrt/quickref.rst b/docs/mimxrt/quickref.rst
index 34e0aa79f1..49d7befc74 100644
--- a/docs/mimxrt/quickref.rst
+++ b/docs/mimxrt/quickref.rst
@@ -429,7 +429,9 @@ See :ref:`machine.RTC <machine.RTC>`::
from machine import RTC
rtc = RTC()
- rtc.datetime((2017, 8, 23, 1, 12, 48, 0, 0)) # set a specific date and time
+ rtc.datetime((2017, 8, 23, 0, 1, 12, 48, 0)) # set a specific date and
+ # time, eg. 2017/8/23 1:12:48
+ # the day-of-week value is ignored
rtc.datetime() # get date and time
rtc.now() # return date and time in CPython format.