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 thread.
View all comments
12 points

C++ user with operator overloading: “T2 minus T1.”

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

permalink
report
reply
2 points

Is there a straightforward way to know which overloading will be used or is it just a roulette every time you add a sketchy new library to your build?

permalink
report
parent
reply
1 point

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.

permalink
report
parent
reply

xkcd

!xkcd@lemmy.world

Create post

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

Community stats

  • 1.7K

    Monthly active users

  • 258

    Posts

  • 5.8K

    Comments

Community moderators