docs/library/time: Provide more info about which epoch is used.
Some embedded targets use 1970 epoch.
This commit is contained in:
parent
fdfe4eca74
commit
fe5598452d
@ -10,8 +10,8 @@ The ``time`` module provides functions for getting the current time and date,
|
|||||||
measuring time intervals, and for delays.
|
measuring time intervals, and for delays.
|
||||||
|
|
||||||
**Time Epoch**: Unix port uses standard for POSIX systems epoch of
|
**Time Epoch**: Unix port uses standard for POSIX systems epoch of
|
||||||
1970-01-01 00:00:00 UTC. However, embedded ports use epoch of
|
1970-01-01 00:00:00 UTC. However, some embedded ports use epoch of
|
||||||
2000-01-01 00:00:00 UTC.
|
2000-01-01 00:00:00 UTC. Epoch year may be determined with ``gmtime(0)[0]``.
|
||||||
|
|
||||||
**Maintaining actual calendar date/time**: This requires a
|
**Maintaining actual calendar date/time**: This requires a
|
||||||
Real Time Clock (RTC). On systems with underlying OS (including some
|
Real Time Clock (RTC). On systems with underlying OS (including some
|
||||||
|
Loading…
Reference in New Issue
Block a user