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

Some embedded targets use 1970 epoch.
pull/8981/head
Peter Hinch 2022-07-27 18:19:42 +01:00 zatwierdzone przez Damien George
rodzic fdfe4eca74
commit fe5598452d
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

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