Skip to content

Commit 6584ad9

Browse files
[3.12] pythongh-88035: update doc-string of epoch in timemodule.c (pythonGH-118076) (pythonGH-118097)
Follow pythonGH-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 <[email protected]>
1 parent 26c659e commit 6584ad9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/timemodule.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1907,8 +1907,8 @@ PyDoc_STRVAR(module_doc,
19071907
There are two standard representations of time. One is the number\n\
19081908
of seconds since the Epoch, in UTC (a.k.a. GMT). It may be an integer\n\
19091909
or a floating point number (to represent fractions of seconds).\n\
1910-
The Epoch is system-defined; on Unix, it is generally January 1st, 1970.\n\
1911-
The actual value can be retrieved by calling gmtime(0).\n\
1910+
The epoch is the point where the time starts, the return value of time.gmtime(0).\n\
1911+
It is January 1, 1970, 00:00:00 (UTC) on all platforms.\n\
19121912
\n\
19131913
The other representation is a tuple of 9 integers giving local time.\n\
19141914
The tuple items are:\n\

0 commit comments

Comments
 (0)