]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-88035: update doc-string of `epoch` in timemodule.c (GH-118076)
authorlit <litlighilit@foxmail.com>
Fri, 19 Apr 2024 11:28:46 +0000 (19:28 +0800)
committerGitHub <noreply@github.com>
Fri, 19 Apr 2024 11:28:46 +0000 (13:28 +0200)
Follow #88035, update doc-string of epoch in timemodule.c

The epoch is `January 1st, 1970 on all platforms`, according to
current documentation.

Modules/timemodule.c

index 2ec5aff235c2936e82a0d3bd58774cfc623a1c00..3211c7530da0b2ff0268092f6947d515ad522512 100644 (file)
@@ -1896,8 +1896,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\