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

OverflowError after 19/1/2038 in time.localtime() #9991

Open
bill88t opened this issue Jan 22, 2025 · 1 comment
Open

OverflowError after 19/1/2038 in time.localtime() #9991

bill88t opened this issue Jan 22, 2025 · 1 comment

Comments

@bill88t
Copy link

bill88t commented Jan 22, 2025

CircuitPython version

Adafruit CircuitPython 9.2.3-1-g401295f6dc on 2025-01-21; LILYGO T-Deck (Plus) with ESP32S3

Code/REPL

import time
>>> time.localtime(2147483647)
struct_time(tm_year=2038, tm_mon=1, tm_mday=19, tm_hour=3, tm_min=14, tm_sec=7, tm_wday=1, tm_yday=19, tm_isdst=-1)
>>> time.localtime(2147483648)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OverflowError: overflow converting long int to machine word

Behavior

Yea, 1/1 of 2038 works, but not after Jan 19 of 2038.

Description

No response

Additional information

No response

@bill88t bill88t added the bug label Jan 22, 2025
@bill88t bill88t changed the title OverflowError after 2038 in time.localtime() OverflowError after 19/1/2038 in time.localtime() Jan 22, 2025
@bablokb
Copy link

bablokb commented Jan 23, 2025

Yes, this is the year 2038 bug, see https://en.wikipedia.org/wiki/Year_2038_problem

@tannewt tannewt added this to the Long term milestone Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants