this post was submitted on 18 Dec 2024
1106 points (98.3% liked)

memes

10693 readers
2148 users here now

Community rules

1. Be civilNo trolling, bigotry or other insulting / annoying behaviour

2. No politicsThis is non-politics community. For political memes please go to [email protected]

3. No recent repostsCheck for reposts when posting a meme, you can only repost after 1 month

4. No botsNo bots without the express approval of the mods or the admins

5. No Spam/AdsNo advertisements or spam. This is an instance rule and the only way to live.

Sister communities

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 5 points 6 days ago (2 children)

More of a front end issue actually, almost all time is just stored as the number of seconds since 00:00:00 Jan 1 1970.

[–] Croquette 4 points 6 days ago (1 children)

And it's represented as a 64 bits value, which is over 500 billions years.

[–] [email protected] 3 points 6 days ago (3 children)
[–] Croquette 3 points 6 days ago

This is for a 32bits encoded epoch time, which will run out in 2038.

Epoch time on 64 bits will see the sun swallow Earth before it runs out.

[–] [email protected] 3 points 6 days ago

That's the 32 bit timestamp

[–] [email protected] 1 points 6 days ago (2 children)

We've still got time to fix it, and the next release of Debian will likely have a time-64 complete userland. I don't know the status of other "bedrock" distributions, but I expect that for all Linux (and BSD) systems that don't have to support a proprietary time-32 program, everything will be time-64 with nearly a decade to spare.

[–] [email protected] 3 points 6 days ago (1 children)

Yup. Gentoo people are working on it as well. This is only a problem on 32-bit Linux too, right?

[–] [email protected] 2 points 5 days ago

I think it affects amd64 / x64 because they originally used a 32-bit time_t for compatibility with x86 to make multiarch easier.

I don't believe it affects arm64.

[–] [email protected] 1 points 6 days ago

Probably some mainframe or something lol. Always a mainframe.

[–] [email protected] 3 points 6 days ago

I've seen plenty of people use ISO 8601 for storage as well as display.