diff options
author | lit <litlighilit@foxmail.com> | 2024-04-19 11:28:46 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-19 11:28:46 (GMT) |
commit | 7c6cc00211772cc2afe0bc5e996b6d28f925d133 (patch) | |
tree | 349fc20284b2b7496100d2229fd2f40fa5f9d5cc | |
parent | 8a01fd7b9bb27c7d284e2f0152713a8619fd34a3 (diff) | |
download | cpython-7c6cc00211772cc2afe0bc5e996b6d28f925d133.zip cpython-7c6cc00211772cc2afe0bc5e996b6d28f925d133.tar.gz cpython-7c6cc00211772cc2afe0bc5e996b6d28f925d133.tar.bz2 |
gh-88035: update doc-string of `epoch` in timemodule.c (GH-118076)
Follow #88035, update doc-string of epoch in timemodule.c
The epoch is `January 1st, 1970 on all platforms`, according to
current documentation.
-rw-r--r-- | Modules/timemodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/timemodule.c b/Modules/timemodule.c index 2ec5aff..3211c75 100644 --- a/Modules/timemodule.c +++ b/Modules/timemodule.c @@ -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\ |