← index #16500PR #4583
Related · high · value 1.195
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: utime: Mention that mktime() is not available on all ports.

closedby pfalconopened 2019-03-06updated 2019-12-28
docs

The description of utime.mktime() is quite adhoc, not compatible with
CPython, hard to implement (or not much useful) in the case of lack
of always-powered RTC. That means that it doesn't make sense for all
ports, and various ports don't implement it, starting from the Unix
port.

Change-Id: I01855921dce038bf0df89f0bc916b564c3935a62

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