• Rusty@lemmy.ca
    link
    fedilink
    English
    arrow-up
    54
    ·
    8 days ago

    I don’t think 10000 year is a problem. There is a real “year 2038 problem” that affects system storing unix time in signed int32, but it’s mostly solved already. The next problem will be in year 33000 or something like that.

    • Ephera@lemmy.ml
      link
      fedilink
      English
      arrow-up
      10
      ·
      8 days ago

      Well, I looked at a Year 10000 problem less than 2 hours ago. We’re parsing logs to extract the timestamp and for that, we’re using a regex which starts with:

      \d{4}-\d{2}-\d{2}
      

      So, we assume there to be 4 digits for the year, always. Can’t use it, if you live in the year 10000 and beyond, nor in the year 999 and before.

    • Pennomi@lemmy.world
      link
      fedilink
      English
      arrow-up
      7
      ·
      8 days ago

      It’s a UX problem rather than a date format problem at that point. Many form fields require exactly 4 digits.

    • GissaMittJobb@lemmy.ml
      link
      fedilink
      arrow-up
      3
      ·
      8 days ago

      It’s going to be significantly more than the year 33000 before we run out of 64-bit epoch timestamps.

      The max value for signed 64-but epoch values is more than 292 billion years away, or 20 times the age of the universe itself.

      So yeah, we’re basically solid forever with 64-bit

    • kevincox@lemmy.ml
      link
      fedilink
      arrow-up
      2
      ·
      8 days ago

      it’s mostly solved already

      I wished I believe this. Or I guess I agree that it is solved in most software but there is lots of commonly used software where it isn’t. One broken bit of software can fairly easily take down a whole site or OS.

      Try to create an event in 2040 in your favourite calendar. There is a decent chance it isn’t supported. I would say most calendar servers support it, but the frontends often don’t or vice-versa.

    • toddestan@lemm.ee
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      8 days ago

      I’ve been curious about that myself. On one hand, it still seems far away. On the other hand, it’s a bit over 13 years away now and I have gear actively in use that’s older than that today.