• Rusty@lemmy.ca
    link
    fedilink
    English
    arrow-up
    82
    ·
    4 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.

      • marcos@lemmy.world
        link
        fedilink
        arrow-up
        14
        ·
        4 days ago

        Yes, there are random systems using every kind of smart or brain-dead option out there.

        But the 2038 problem impacts the previous standard, and the current one will take ages to fail. (No, it’s not 33000, unless you are using some variant of the standard that counts nanoseconds instead of seconds. Those usually have more bits nowadays, but some odd older systems do it on the same 64 bits from the standard.)

    • Ephera@lemmy.ml
      link
      fedilink
      English
      arrow-up
      19
      ·
      4 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
      11
      ·
      4 days ago

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

    • toddestan@lemm.ee
      link
      fedilink
      arrow-up
      3
      ·
      edit-2
      4 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.

    • kevincox@lemmy.ml
      link
      fedilink
      arrow-up
      5
      ·
      4 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.

    • JackbyDev@programming.dev
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 days ago

      I don’t think it will be a problem because it’s 8,000 years away lol, but people do store time in ISO 8601 strings.

    • GissaMittJobb@lemmy.ml
      link
      fedilink
      arrow-up
      4
      ·
      4 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