• oo1@kbin.social
    link
    fedilink
    arrow-up
    1
    ·
    8 months ago

    oh i was just making a stupid joke about 2KB.
    I didn’t realise there was an actual other y2k problem.

    How did they get to a 32 bit problem within only 2038 years?
    Oh is it like 32 bit counter of seconds or some dumb shit like that.
    Stupid shortcut data structures.
    That said I’d better check the RTC module in my arduino alarm clock.
    It’s a clock module though so i assume it was designed by someone who gives time enough respect to store the data properly.

    • Nibodhika@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      8 months ago

      Completely missed the joke about 2k being 2048, hahahaha

      Here’s the wiki page https://en.m.wikipedia.org/wiki/Year_2038_problem

      Essentially what happens is that computers measure dates as the number of seconds since Jan 1st 1970 (known as Epoch). 32 bits can only count seconds up to Jan 19 2038, after that it will cause an overflow and reset to zero. Most modern systems use 64 bits for dates even if the processor is 32. Same reason why 32 bit computers shouldn’t use more than 4GB of RAM (they can’t address it properly)