summaryrefslogtreecommitdiffstatshomepage
path: root/docs/library/machine.RTC.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/library/machine.RTC.rst')
-rw-r--r--docs/library/machine.RTC.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/library/machine.RTC.rst b/docs/library/machine.RTC.rst
index fcfc14f500..c69e4781a2 100644
--- a/docs/library/machine.RTC.rst
+++ b/docs/library/machine.RTC.rst
@@ -9,8 +9,8 @@ and time.
Example usage::
rtc = machine.RTC()
- rtc.datetime((2014, 5, 1, 4, 13, 0, 0, 0))
- print(rtc.datetime())
+ rtc.init((2014, 5, 1, 4, 13, 0, 0, 0))
+ print(rtc.now())
Constructors
@@ -23,7 +23,7 @@ Constructors
Methods
-------
-.. method:: rtc.init(id, datetime)
+.. method:: rtc.init(datetime)
Initialise the RTC. Datetime is a tuple of the form: