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.]

    • kurwa@lemmy.world
      link
      fedilink
      English
      arrow-up
      9
      arrow-down
      1
      ·
      11 months ago

      I got to “The day before Saturday is always Friday” and I was like waaaa?

      • lad
        link
        fedilink
        English
        arrow-up
        8
        ·
        11 months ago

        I thought it is about when Julian calendar was dropped in favour of Gregorian, but that’s not it:

        Thursday 4 October 1582 was followed by Friday 15 October 1582

        • elvith@feddit.de
          link
          fedilink
          English
          arrow-up
          9
          ·
          edit-2
          11 months ago

          Also some of the islands around the International Date Line did switch their stance on which side of the Date Line they are. So… they might have had a day twice or lost a whole day in the process. And maybe, they didn’t change sides only once…

          E.g. see here https://youtu.be/cpKuBlvef6A

          • lad
            link
            fedilink
            English
            arrow-up
            3
            ·
            11 months ago

            A great video you linked, the missing Friday is in it on timestamp 22:45

            The Thursday 29th of December 2011 was followed by Saturday 31st of December 2011 on Samoa

    • whoisearth@lemmy.ca
      link
      fedilink
      English
      arrow-up
      5
      arrow-down
      1
      ·
      11 months ago

      Epoch is your friend, or use UTC. At least that’s my layman reasoning. I have no challenges working with DateTime except when I don’t know the underlying conditions applied from the source code.