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

xkcd

8836 readers
198 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
[โ€“] [email protected] 12 points 11 months ago (2 children)

C++ user with operator overloading: "T2 minus T1."

Let someone else implement the class. There's probably a library for it.

[โ€“] [email protected] 1 points 11 months ago

That's fine if T1 and T2 include a datetime with the exact local timezone. A simple timestamp or timestamp + utc offset won't work.

load more comments (1 replies)