kopia lustrzana https://github.com/micropython/micropython
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.pull/9221/head
rodzic
e90b85cc98
commit
dea212cecb
|
@ -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)
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue