← index #16500PR #9221
Off-topic · high · value 3.630
QUERY · ISSUE

docs: time.mktime requires one positional argument

openby maxi07opened 2024-12-29updated 2025-10-03
docs

Documentation URL

No response

Description

when running the function time.mktime(), an exception occurs as the function does require one positional argument. But this is not documented, although it states "t’s argument is a full 8-tuple" inside the description.

Code of Conduct

Yes, I agree

CANDIDATE · PULL REQUEST

docs/library/time.rst: fix description of return results in time.mktime()

openby lowfatcodeopened 2022-09-06updated 2022-11-07
docs

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.

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied