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

xkcd

8973 readers
32 users here now

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

founded 2 years 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
[–] kogasa@programming.dev 4 points 1 year ago (1 children)

Unix epoch time in UTC, making sure that your local offset and drift are current at the time of conversion to UTC...

[–] reverendsteveii@lemm.ee 2 points 1 year ago (1 children)

i don't even care if its wrong, I just want the code to be readable.

[–] kogasa@programming.dev 2 points 1 year ago (1 children)

You should care if it's wrong.

[–] reverendsteveii@lemm.ee 2 points 1 year ago (1 children)

at the resolution of clock drift in milliseconds when I'm running reports that are, at most, only specific to the day?

[–] kogasa@programming.dev 1 points 1 year ago (1 children)

Clock drift? No. Time zones? Probably.

[–] reverendsteveii@lemm.ee 1 points 1 year ago (1 children)

not really time zones either outside the edge case where a data point exists within delta of midnight so that the time zone drift would result in a date change

[–] kogasa@programming.dev 1 points 1 year ago

Time zones change. Relative times without time zones don't make sense.