Skip to content

Commit

Permalink
[3.12] gh-88035: update doc-string of epoch in timemodule.c (GH-118076
Browse files Browse the repository at this point in the history
) (GH-118097)

Follow GH-88035, update doc-string of epoch in timemodule.c

The epoch is `January 1st, 1970 on all platforms`, according to
current documentation.
(cherry picked from commit 7c6cc00)

Co-authored-by: lit <litlighilit@foxmail.com>
  • Loading branch information
miss-islington and litlighilit committed Apr 19, 2024
1 parent 26c659e commit 6584ad9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Modules/timemodule.c
Expand Up @@ -1907,8 +1907,8 @@ PyDoc_STRVAR(module_doc,
There are two standard representations of time. One is the number\n\
of seconds since the Epoch, in UTC (a.k.a. GMT). It may be an integer\n\
or a floating point number (to represent fractions of seconds).\n\
The Epoch is system-defined; on Unix, it is generally January 1st, 1970.\n\
The actual value can be retrieved by calling gmtime(0).\n\
The epoch is the point where the time starts, the return value of time.gmtime(0).\n\
It is January 1, 1970, 00:00:00 (UTC) on all platforms.\n\
\n\
The other representation is a tuple of 9 integers giving local time.\n\
The tuple items are:\n\
Expand Down

0 comments on commit 6584ad9

Please sign in to comment.