Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: utime: Mention that mktime() is not available on all ports. #4583

Closed

Conversation

pfalcon
Copy link
Contributor

@pfalcon pfalcon commented Mar 6, 2019

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

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
@pfalcon
Copy link
Contributor Author

pfalcon commented Mar 6, 2019

As pointed out in #4576

@dpgeorge
Copy link
Member

The unix port has uos.mktime() as of 1b844e9

@dpgeorge dpgeorge closed this Dec 28, 2019
tannewt added a commit to tannewt/circuitpython that referenced this pull request Apr 13, 2021
[qstr] Separate hash and len from string data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants