summaryrefslogtreecommitdiffstatshomepage
path: root/docs/library/utime.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/library/utime.rst')
-rw-r--r--docs/library/utime.rst14
1 files changed, 10 insertions, 4 deletions
diff --git a/docs/library/utime.rst b/docs/library/utime.rst
index 7fe83f5abe..8c222ede5f 100644
--- a/docs/library/utime.rst
+++ b/docs/library/utime.rst
@@ -36,11 +36,17 @@ behave not as expected.
Functions
---------
-.. function:: localtime([secs])
+.. function:: gmtime([secs])
+ localtime([secs])
- Convert a time expressed in seconds since the Epoch (see above) into an 8-tuple which
- contains: (year, month, mday, hour, minute, second, weekday, yearday)
- If secs is not provided or None, then the current time from the RTC is used.
+ Convert the time *secs* expressed in seconds since the Epoch (see above) into an
+ 8-tuple which contains: ``(year, month, mday, hour, minute, second, weekday, yearday)``
+ If *secs* is not provided or None, then the current time from the RTC is used.
+
+ The `gmtime()` function returns a date-time tuple in UTC, and `localtime()` returns a
+ date-time tuple in local time.
+
+ The format of the entries in the 8-tuple are:
* year includes the century (for example 2014).
* month is 1-12