docs/library/time: Provide more info about which epoch is used.

Some embedded targets use 1970 epoch.
This commit is contained in:
Peter Hinch 2022-07-27 18:19:42 +01:00 committed by Damien George
parent fdfe4eca74
commit fe5598452d

View File

@ -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