Skip to content

Commit fe55984

Browse files
peterhinchdpgeorge
authored andcommitted
docs/library/time: Provide more info about which epoch is used.
Some embedded targets use 1970 epoch.
1 parent fdfe4ec commit fe55984

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎docs/library/time.rst‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ The ``time`` module provides functions for getting the current time and date,
1010
measuring time intervals, and for delays.
1111

1212
**Time Epoch**: Unix port uses standard for POSIX systems epoch of
13-
1970-01-01 00:00:00 UTC. However, embedded ports use epoch of
14-
2000-01-01 00:00:00 UTC.
13+
1970-01-01 00:00:00 UTC. However, some embedded ports use epoch of
14+
2000-01-01 00:00:00 UTC. Epoch year may be determined with ``gmtime(0)[0]``.
1515

1616
**Maintaining actual calendar date/time**: This requires a
1717
Real Time Clock (RTC). On systems with underlying OS (including some

0 commit comments

Comments
 (0)