Overflow in time.localtime()
Posted: Thu Jun 04, 2020 10:30 am
So I had a bug in my code that produced an invalid timestamp.
I solved the bug but thought it was strange that there's a max int for locatime()
What is the maximum value you can pass to localtime() ?
Running on stable build 1.12 on Pyboard D SF6W
Bug below:
time.localtime(2366758325)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OverflowError: overflow converting long int to machine word
I solved the bug but thought it was strange that there's a max int for locatime()
What is the maximum value you can pass to localtime() ?
Running on stable build 1.12 on Pyboard D SF6W
Bug below:
time.localtime(2366758325)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OverflowError: overflow converting long int to machine word