• sebsch@discuss.tchncs.de
    link
    fedilink
    arrow-up
    1
    ·
    11 months ago

    I mean, as long you only need the delta in milliseconds it’s easy. Just count the milliseconds from 1970 to the event. The problem starts when you want to have a human readable representation.

    It’s calenders they suck, not time.

    • mormegil@programming.dev
      link
      fedilink
      arrow-up
      4
      ·
      11 months ago

      Well… unless you measure the number of [milli]seconds using something like time_t, which lies because of leap seconds. I.e. even such a seemingly simple interface, in fact, includes a calendar.