this post was submitted on 14 Dec 2023
987 points (99.2% liked)

xkcd

8632 readers
34 users here now

A community for a webcomic of romance, sarcasm, math, and language.

founded 1 year ago
MODERATORS
 

https://xkcd.com/2867

Alt text:

It's not just time zones and leap seconds. SI seconds on Earth are slower because of relativity, so there are time standards for space stuff (TCB, TGC) that use faster SI seconds than UTC/Unix time. T2 - T1 = [God doesn't know and the Devil isn't telling.]

you are viewing a single comment's thread
view the rest of the comments
[–] ericbomb@lemmy.world 105 points 9 months ago* (last edited 9 months ago) (1 children)

We use datediff in sql and let God handle the rest.

"Oh but they're in different time zones" "Oh did you account for if one is in day light savings and other isn't" "Aren't some of these dates stored in UTC and some local?"

Are all problems I do not care about.

[–] Cosmonaut_Collin@lemmy.world 1 points 9 months ago (1 children)

This is why we should just move to a universal time zone and stop with the day light savings.

[–] nxdefiant@startrek.website 1 points 9 months ago* (last edited 9 months ago) (1 children)

We have that, it's called Unix time, and the only thing it doesn't account for is time dilation due to relativity.

it's perfect

[–] phoneymouse@lemmy.world 2 points 9 months ago (1 children)

If your system hasn’t been upgraded to 64-bit types by 2038, you’d deserve your overflow bug

[–] Appoxo@lemmy.dbzer0.com 1 points 9 months ago (1 children)

Let's just nake it 128-Bit so it's not our problem anymore.
Hell, let's make it 256-Bit because it sounds like AES256

[–] phoneymouse@lemmy.world 1 points 9 months ago* (last edited 9 months ago)

64 bits is already enough not to overflow for 292 billion years. That’s 21 times longer than the estimated age of the universe.