diff options
| author | Peter Hinch <peterhinch@users.noreply.github.com> | 2022-07-27 18:19:42 +0100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2022-07-29 11:27:16 +1000 |
| commit | fe5598452dd82ab24cf19221777b901a6decccdd (patch) | |
| tree | 177963a577d6d2a0bcb4157ca9bcb31bfcd95e98 | |
| parent | fdfe4eca745dce5f20fb65a3c197006b9053999a (diff) | |
docs/library/time: Provide more info about which epoch is used.
Some embedded targets use 1970 epoch.
| -rw-r--r-- | docs/library/time.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/library/time.rst b/docs/library/time.rst index 6ca172f22..3ab5caf24 100644 --- a/docs/library/time.rst +++ b/docs/library/time.rst @@ -10,8 +10,8 @@ The ``time`` module provides functions for getting the current time and date, measuring time intervals, and for delays. **Time Epoch**: Unix port uses standard for POSIX systems epoch of -1970-01-01 00:00:00 UTC. However, embedded ports use epoch of -2000-01-01 00:00:00 UTC. +1970-01-01 00:00:00 UTC. However, some embedded ports use epoch of +2000-01-01 00:00:00 UTC. Epoch year may be determined with ``gmtime(0)[0]``. **Maintaining actual calendar date/time**: This requires a Real Time Clock (RTC). On systems with underlying OS (including some |
