• dbx12@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      2 months ago

      So many people interpret “best before” as “poisonous as hell after”. Look at it, smell it, taste (a little bit of) it. If it passes all three, still perfect to eat.

  • mrspaz@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    2 months ago

    I wrote a program to figure out what day of the week this landed on (assuming it is in fact October 2nd, 151441).

    It’s a Saturday.

    Real downer on the start of the weekend.

        • odium@programming.dev
          link
          fedilink
          arrow-up
          1
          ·
          2 months ago

          That program better be using an existing date library, because otherwise it’s most definitely wrong.

            • al4s@lemmy.world
              link
              fedilink
              arrow-up
              1
              ·
              2 months ago

              Don’t be ridiculous, that would never pass QA.

              But this one will. Joy for years to come:

              public string GetDayOfWeek(DateTime date) {
                  return ((date - new DateTime(1970, 1, 1)).Milliseconds / 86400000) % 7 switch {
                      0 => "Thursday",
                      1 => "Friday",
                      2 => "Saturday",
                      3 => "Sunday",
                      4 => "Monday"
                  };
              }
              
  • Crashumbc@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 months ago

    1441 is most likely the time stamp sorry guys…

    (Not sure if Canada follows US or internal date format)