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

64-bit time_t and year 2038 #151

Open
chudsaviet opened this issue Aug 28, 2021 · 2 comments
Open

64-bit time_t and year 2038 #151

chudsaviet opened this issue Aug 28, 2021 · 2 comments

Comments

@chudsaviet
Copy link

unsigned long time will overflow in 2038.
Actually, in libc Arduino is using time_t type is and alias to unsigned long long, which is a 64-bit value.
It would be great to make the library more future-proof.

@bsvdoom
Copy link

bsvdoom commented Nov 5, 2021

Is this a duplicate of #149?

@edgar-bonet
Copy link

A signed long Unix time would overflow in 2038.

The unsigned long Unix time used here will overflow in 2106.

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

3 participants