From dea212cecb465c012c2fb1e89dc917586080740e Mon Sep 17 00:00:00 2001 From: lowfatcode Date: Tue, 6 Sep 2022 08:44:46 +0100 Subject: [PATCH] Fix description of return results in time.mktime() Currently it states that the result is the number of seconds since Jan 1, 2000 - however at least on RP2040 that isn't the case and further up the same page of documentation it is stated that the epoch is usually Jan 1, 1970. --- docs/library/time.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/library/time.rst b/docs/library/time.rst index 3ab5caf248..13b9b0b51e 100644 --- a/docs/library/time.rst +++ b/docs/library/time.rst @@ -61,7 +61,8 @@ Functions This is inverse function of localtime. It's argument is a full 8-tuple which expresses a time as per localtime. It returns an integer which is - the number of seconds since Jan 1, 2000. + the number of seconds since the epoch - usually Jan 1, 1970 (Epoch year + may be determined with ``gmtime(0)[0]``). .. function:: sleep(seconds)