• original_ish_name@lemm.ee
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      I’ve said it once and I will say it again:

      mkdir -p 2023/{January,February,March,April,May,June,July,August,Septembet,October,November,December}

      Warning: not POSIX

  • YaaAsantewaa@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    4
    arrow-down
    5
    ·
    1 year ago

    It’s by smallest integer to largest, what’s weird about that?

    12 months a year, up to 31 days a month and X number of years. It makes the most sense

    • jerieljan@lemmy.ml
      link
      fedilink
      English
      arrow-up
      4
      arrow-down
      1
      ·
      1 year ago

      Because it gets horribly fucky when you now have to figure out if a date is actually formatted as MM-DD-YY or DD-MM-YY.

      Surely we’ve all handled reading an expiration date before and have wondered if we’re eating something OK or has expired months ago because they chose the other format.

      (Honestly, I think both formats are shit, and the only correct way to do dates with numbers only is YYYY-MM-DD. If not, then at least use letters for months, like 30 AUG 2023)

      • YaaAsantewaa@lemmy.blahaj.zone
        link
        fedilink
        arrow-up
        1
        arrow-down
        4
        ·
        1 year ago

        Surely we’ve all handled reading an expiration date before and have wondered if we’re eating something OK or has expired months ago

        No, I haven’t, and I don’t know anyone else who has

        • Alien Nathan Edward@lemm.ee
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          When you say “don’t store dates as a string” what you’re really saying is “wait for someone else to solve the problem and release a library, then use that library”. That seems to be what the majority of the industry does (I’m a Java coder myself and joda is a lifesaver in that regard) but my point is that this problem is hard. Date and time stamps are a subtly difficult part of the average API monkey’s daily work.

          • Grumpy@sh.itjust.works
            link
            fedilink
            arrow-up
            0
            ·
            1 year ago

            He’s making a pedantic joke. Lower case m is sometimes used to indicate minutes.

            Albeit a weak one since many formats use lowercase m to indicate month. Such as programming languages like python & PHP. IBM & Microsoft standards also use lowercase m and so forth.

            • original_ish_name@lemm.ee
              link
              fedilink
              arrow-up
              1
              ·
              1 year ago

              I did think he might be making a joke but since as you said it would be a weak one I gave him the benifit of the doubt

            • hemko@lemmy.dbzer0.com
              link
              fedilink
              English
              arrow-up
              1
              ·
              1 year ago

              Yeah it’s a bit mixed bag. Powershell command get-date expects mm for minutes and MM for months, which has messed up my scripts logging few times lol

  • jimmux@programming.dev
    link
    fedilink
    arrow-up
    1
    arrow-down
    3
    ·
    1 year ago

    Months are dumb. Inconsistent lengths, the names are out of sync (OCTober isn’t month 8), pretend to be based on lunar cycles but not, etc.

    Give us Year/Day date formats. Extra new year holiday on leap years.

      • ℛ𝒶𝓋ℯ𝓃@pawb.social
        link
        fedilink
        arrow-up
        3
        arrow-down
        2
        ·
        1 year ago

        I use Fahrenheit just because it’s a pain to get everything set to Celsius and other Americans don’t understand it. But I use grams, kilos, millilitres, kilometres, etc. Yes. And if someone asks me to guess the length of an object I will give centimetres, and refuse to translate to inches and their stupid fractions.

  • Gestrid@lemmy.ca
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago

    The way I see it, the US just writes it the way it’s spoken. “August 9th, 2023” vs. “the 9th of August, 2023”.

    • nevial@discuss.tchncs.de
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      No, the US just chose this order and speaks it the same way. I don’t speak it this way, you’re just used to it (just like everyone is to the way they speak it)

  • NoStressyJessie@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    1
    ·
    edit-2
    1 year ago

    If it’s a file I want sorted by date the top is good. If I am talking about a date and spelling it out August the 9th of 2023 makes the most sense and seems natural, and if it’s a personal memo or date label on food I just use 08/09 with the zeros so I know it isn’t a fraction unless it’s frozen or shelf stable for long term storage where the year would be useful to know at which point it becomes 8/9/23

    I thought everybody used different date formats based on need.

    • KingOfNexus@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      In UK we always say 9th of August 2023, ie the way our dates are written and i would say is more natural haha. Maybe Americans find it more natural the other way around because your dates are other way around. If you use the date system the uk has maybe it would sound more natural to speak perhaps.

      • NoStressyJessie@lemmy.blahaj.zone
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        I grew up on RuneScape and BBC programming, so I’ve been exposed to both formats for a long time (really fucked me up in spelling). I couldn’t say why August 9th sounds more natural, but it’s probably because most irl folks around me use it. The 9th of August didn’t sound bad, just more artificial, and it’s probably because my exposure to that spoken out was mostly media and pop culture.

  • Jyek@sh.itjust.works
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    Alright, then I guess change the way you read a clock too… My day to day use doesn’t include the year at all. Just mm/dd

    • adriaan@sh.itjust.works
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      Why change the way you read a clock? year/month/day hour:minute:second

      You would never read a clock as minute:second:hour, which is analagous to how Americans phrase dates.