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

memes

16673 readers
2730 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 !politicalmemes@lemmy.world

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/Ads/AI SlopNo advertisements or spam. This is an instance rule and the only way to live. We also consider AI slop to be spam in this community and is subject to removal.

A collection of some classic Lemmy memes for your enjoyment

Sister communities

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] finitebanjo@lemmy.world 5 points 7 months 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@sh.itjust.works 4 points 7 months ago (1 children)

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

[–] MystikIncarnate@lemmy.ca 3 points 7 months ago (3 children)
[–] smeenz@lemmy.nz 3 points 7 months ago

That's the 32 bit timestamp

[–] Croquette@sh.itjust.works 3 points 7 months 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.

[–] bss03 1 points 7 months 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.

[–] 2xsaiko@discuss.tchncs.de 3 points 7 months ago (1 children)

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

[–] bss03 2 points 7 months 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.

[–] JackbyDev@programming.dev 1 points 7 months ago

Probably some mainframe or something lol. Always a mainframe.

[–] JackbyDev@programming.dev 3 points 7 months ago

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