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

all: y2038 problem (hold until 2030) #422

Open
ghost opened this issue Jun 22, 2020 · 2 comments
Open

all: y2038 problem (hold until 2030) #422

ghost opened this issue Jun 22, 2020 · 2 comments

Comments

@ghost
Copy link

ghost commented Jun 22, 2020

I'm worried about time() returning long, while at my system long is 64 bit, it can be 32 bit at others.

Related issue: 0intro/9legacy#11

@rsc rsc changed the title Year 2038 problem all: y2038 problem (hold until 2030) Jun 22, 2020
@rsc
Copy link
Contributor

rsc commented Jun 22, 2020

A significant amount of code uses long and should be vlong.
A significant amount of code uses ulong for unsigned 32-bit numbers and will need to be left alone (mostly corresponding to wire formats). That code will work until 2106.

I'm happy to start looking at this in 2030.

@ghost
Copy link
Author

ghost commented Jun 23, 2020

But they are unsigned 64 bit numbers at some systems (in my case amd64 glibc Linux), can that cause any conflicts right now?

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