summaryrefslogtreecommitdiff
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
parente323da729101c9fe626b5b08cafef2dbdbb70441 (diff)
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>
-rw-r--r--docs/esp32/quickref.rst4
-rw-r--r--docs/esp8266/quickref.rst4
-rw-r--r--docs/mimxrt/quickref.rst4
-rw-r--r--docs/pyboard/quickref.rst4
-rw-r--r--docs/renesas-ra/quickref.rst5
-rw-r--r--docs/rp2/quickref.rst3
6 files changed, 17 insertions, 7 deletions
diff --git a/docs/esp32/quickref.rst b/docs/esp32/quickref.rst
index 5cce96d68..c5c2dfb38 100644
--- a/docs/esp32/quickref.rst
+++ b/docs/esp32/quickref.rst
@@ -577,7 +577,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
WDT (Watchdog timer)
diff --git a/docs/esp8266/quickref.rst b/docs/esp8266/quickref.rst
index 635f1f834..e17b60f67 100644
--- a/docs/esp8266/quickref.rst
+++ b/docs/esp8266/quickref.rst
@@ -284,7 +284,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
# synchronize with ntp
diff --git a/docs/mimxrt/quickref.rst b/docs/mimxrt/quickref.rst
index 34e0aa79f..49d7befc7 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.
diff --git a/docs/pyboard/quickref.rst b/docs/pyboard/quickref.rst
index 62157bff0..52ddc29b1 100644
--- a/docs/pyboard/quickref.rst
+++ b/docs/pyboard/quickref.rst
@@ -138,7 +138,9 @@ See :ref:`pyb.RTC <pyb.RTC>` ::
from pyb 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
PWM (pulse width modulation)
diff --git a/docs/renesas-ra/quickref.rst b/docs/renesas-ra/quickref.rst
index ea9a38db1..b5283707f 100644
--- a/docs/renesas-ra/quickref.rst
+++ b/docs/renesas-ra/quickref.rst
@@ -206,8 +206,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
- # time, eg 2017/8/23 1:12:48
+ 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
Following functions are not supported at the present::
diff --git a/docs/rp2/quickref.rst b/docs/rp2/quickref.rst
index 9b82ea5dc..6be318050 100644
--- a/docs/rp2/quickref.rst
+++ b/docs/rp2/quickref.rst
@@ -310,8 +310,9 @@ See :ref:`machine.RTC <machine.RTC>` ::
from machine import RTC
rtc = RTC()
- rtc.datetime((2017, 8, 23, 2, 12, 48, 0, 0)) # set a specific date and
+ 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
WDT (Watchdog timer)