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

datetime.fromtimestamp() overflows in all cases #25

Open
thomaspaulin opened this issue Mar 7, 2024 · 0 comments
Open

datetime.fromtimestamp() overflows in all cases #25

thomaspaulin opened this issue Mar 7, 2024 · 0 comments

Comments

@thomaspaulin
Copy link

I'm running CircuitPython 8.2.9 on a Matrix Portal M4 board and I've not been able to get datetime.fromtimestamp() working with any parameters.

For example I ran the following in the REPL

>>> datetime.fromtimestamp(0)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "adafruit_datetime.py", line 1370, in fromtimestamp
  File "adafruit_datetime.py", line 1349, in _fromtimestamp
OverflowError: timestamp out of range for platform time_t

I see the same error when using different values of int and float dtypes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant