• Saleh@feddit.org
        link
        fedilink
        arrow-up
        0
        ·
        13 days ago

        Can be solved with a small shellscript adding a leading zero to all filenames with the format.

      • GreyEyedGhost@lemmy.ca
        link
        fedilink
        arrow-up
        0
        ·
        12 days ago

        If I, my software, or my data last this long, I will have nearly 8000 years to resolve it. Which is to say, the year 9998 is going to get busy.

      • thesmokingman@programming.dev
        link
        fedilink
        arrow-up
        0
        ·
        13 days ago

        I’d be curious to see a sorting algorithm that doesn’t handle YYYYY-MM-DD with YYYY-MM-DD properly. If you drop the dashes you still get a proper numeric order. If you sort by component, you still get the proper order. Maybe a string sort wouldn’t? Off the top of my head the languages I’m thinking either put longer strings later, giving us the proper order, or could put 1YYYY- ahead of 1YYY-M so maybe string sorting is the only one that’s out.

        • HailHydra@infosec.pub
          link
          fedilink
          English
          arrow-up
          0
          ·
          edit-2
          13 days ago

          Lexical sorting (string sorting/alphabetical order sorting) is what I believe they were referring to when talking about file names.

          The fact that you don’t have to do any parsing of the string at all, just do a straight character-by-character alphabetical sort, and they will be sorted by date, is a great benifit of this date scheme. That means in situations where no special parsing is set up (eg, in a File Explorer windows showing a folder sorted alphabetically) or where your string isn’t strictly date only (eg, a file name format such as ‘2025-05-02 - Project 3.pdf’) you can still have everything sorted by date just by sorting alphabetically.

          Its this benifit that is lost when rolling over to 5-digit years.

          • JackbyDev@programming.dev
            link
            fedilink
            English
            arrow-up
            0
            ·
            13 days ago

            I bet you could make a one liner to rename files with YYYY-MM-DD to 0YYYY-MM-DD fairly easily. Not a problem.

          • The_Decryptor@aussie.zone
            link
            fedilink
            English
            arrow-up
            0
            ·
            13 days ago

            It’s an easy fix at least, just check if you’re comparing numbers on both sides and switch to a simple numerical sort.

            I think Windows used to get this wrong, but it was fixed so long ago that I’m not even sure now.

          • blazeknave@lemmy.world
            link
            fedilink
            arrow-up
            0
            ·
            10 days ago

            I’ve never met a fellow Templatr in the wild lol

            My daily note broke and my life fell apart for a minute.

            Have you also spent months building your Data Capture Workflow mermaid.js? 😅😬

            • compostgoblin@slrpnk.netOP
              link
              fedilink
              English
              arrow-up
              0
              ·
              9 days ago

              Not quite months, but definitely weeks 😂 Obsidian can be such a rabbit hole. If I tweak that last template one more time, then I’ll finally be done, I swear!

          • blazeknave@lemmy.world
            link
            fedilink
            arrow-up
            0
            ·
            10 days ago

            It’s called feeling seen and finding you’re not alone. Do you type "# " while screen sharing in work apps to no avail and the chagrin of colleagues? It’s okay. Me too.

    • blazeknave@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      13 days ago

      Omg thank you!! Everyone sees my notes thinks I’m crazy for obsessing… It’s the correct fucking sort!

  • Noerknhar@feddit.org
    link
    fedilink
    arrow-up
    0
    ·
    13 days ago

    I’m working in an international company with colleagues around the world. To avoid confusion, I switched to using this format:

    27-FEB-2013

    • Imgonnatrythis@sh.itjust.works
      link
      fedilink
      arrow-up
      0
      ·
      13 days ago

      I deal with a lot of old records and boy I really prefer iso when you have to look at a lot of dates and things are in all different years, it’s helpful. Have you tried ISO? I also do a lot of international work and haven’t heard complaints about it being confusing.

    • TechGuy@discuss.online
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      13 days ago

      10:13pm or 8:13pm? I can see how this is confusing… perhaps another cartoon with more guidance might be needed.

      Personally I like date time groups: 272013 Feb 2013

    • brsrklf@jlai.lu
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      13 days ago

      So, assuming you got the time wrong and meant you could confuse year and time of day, ISO also puts time after date.

      2025-05-01T18:18:03Z

      Which makes sense. Higher unit to lower unit.

  • stupidcasey@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    13 days ago

    This standard would have probably caught on if they wouldn’t have gone and made it backwards.

    Objectively you are more likely to need to know the day first, then the month then the year, and when people get lazy they always just leave off the year because it is assumed, but if the year is first you have to say the whole thing or sound stupid.

    • Kamsaa@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      12 days ago

      Depends on the purpose. For documents (especially those on which people work collaboratively over long periods of time) I find YYYY-MM-DD ideal. It spares the issues around day or month first when Europeans and people from the US work together, the document are easy to sort and, if it takes more than a year to complete the project (as is often the case in research) things don’t get messy.

    • thebestaquaman@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      12 days ago

      In daily speech you’re correct, but the ISO standard isn’t meant for daily speech. It’s meant for timestamps and archives that can be queried in a systematic manner. In that case, the natural ordering is to narrow down the search by year-month-day.

  • RFC-3336

    I figured there were problems with existing calendars, so I created a new one to supersede all others. That reminds me, though: I need to declare the “official” format for the calendar, to avoid all this nonsense.

    I see a window of opportunity, here. Normally, there’s no chance for any calendar revision to succeed in adoption; however, I think if I use the right words with the President, I could get it pushed into adoption by fiat. Y’all had best start learning my new calendar to get ahead of everyone else.

    Note for the humorously disadvantaged: the Saturnalia Calendar is a mechanism through which I’m playing with a new (to me) programming language. I am under no disillusion that anyone else will see the obvious advantages and clear superiority of the Saturnalia Calendar, much less adopt it. And no comments from the peanut gallery about the name! What, did you expect me to actually spend time thinking of a catchy name when a perfectly good, mostly unused one already existed?

    • waigl@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      13 days ago

      Why does nobody mention the Discordian calendar? 5 days per week, 73 days per month, 5 months to a year (Chaos, Discord, Confusion, Bureaucracy and the Aftermath). On leap years, it adds one additional day (St. Tib’s day) with a name but no numerical date.

      • That’s where I started. I wanted a little project to try V on, and had come across the IFC, so I wrote a thing. While I was doing that, I got to thinking about the deficiencies and inherited complexities in IFC, and thought up Saturnalia.

        If you pop up to my profile in Sourcehut, you’ll find a similar program - just a lot longer and more complex, for IFC.

        I don’t know if they makes me a genius, but yes. Yes it does.

    • glaber@lemm.ee
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      13 days ago

      Hey, I quite like this! You’re the first person I’ve found that’s thought of fixing the calendar by adopting six-day weeks. I have a very similar personal version, with two main differences:

      • there’s a leap week instead of a leap day, that way weekdays are always the same without having to skip any and every year has a whole number of weeks (either 61 most years [roughly 7 out of every 8] or 60 on short years [roughly 1 out of every 8])
      • December includes this leap week and it’s either 30 or 36 days long, depending on the year. I put it at the end of December for the same logic that you put Saturnalia at the end of the year, to not mess with cardinal dates and so that the Xth day of the year is always the same date

      I also came to the same conclusion about workweeks. With two-day weekends, the Gregorian calendar has 71 % of workdays but the new calendar only has 67 %. On a thirty-day month this means 20 workdays instead of 21,5

        • glaber@lemm.ee
          link
          fedilink
          arrow-up
          0
          ·
          13 days ago

          Only in eight year chunks. By year seven there is more unalignment than there was in year one, but it goes back to normal on year eight. Same thing as with leap days, just a slightly bigger scale.

          In fact, with current rules, [the shift in the regular Gregorian calendar becomes quite big when considering 100-year and 400-year cycles](File:Gregoriancalendarleap_solstice.svg). In theory, a leap week calendar with new and updated rules could have a very comparable if not a smaller average deviation from the true solar date, though I haven’t ran the precise calculations

          • Ok, so, first, let me say that while I’m enthusiastic about the concept, I understand it’s entirely theoretical. We can’t even get US civilians to adopt metric, FFS. Just a caveat, lest anyone wander by and overhear us.

            That said, I did spend some cycles trying to see it it would be possibly to line up a lunar and solar calendar, and it’s not. And it isn’t nearly as important as it used to be. It would still have been nice.

            So if you do run calculations, I’d like to see them.

            • glaber@lemm.ee
              link
              fedilink
              English
              arrow-up
              0
              ·
              edit-2
              7 days ago

              Here they are! Orange represents my Leapweek calendar and blue is Gregorian. The Y-axis is deviation from the tropical year and the X-axis is the year number. It’s a 19200-year cycle to allow for both Gregorian and Leapweek to do entire iterations of their 400-year and 768-year cycles, respectively.

              The Gregorian rules are, as you already know: if a year is divisible by 4, it is a leap year; unless it is divisible by 100, when it is a common year; unless it is also divisible by 400, in which case it is actually a leap year.

              My Leapweek rules are: years divisible by 8, are leap (short, with 360 days instead of the usual 366) years, as are years divisible by 768 (after subtracting 4 so as not to clash with years divisible by 8). Just two rules as opposed to Gregorian’s three, but they result in almost perfect correction: it takes 625 000 years to fall out of sync by 1 day, as opposed to Gregorian’s 3 216 years for the same amount)

              The catch is that Leapweek falls out of sync by up to 5½ days either way in between 768-year cycles, and up to 2½ days either way in between 8-year cycles. But they average out.

              About the lunisolar I’m afraid to say that I ran into the same issue. Lunations are a very inconvenient duration to try and fit into neat solar days and months.

              I wish it weren’t as theoretical, because I really like this calendar, but yea. It’s one of those things that will be impossible to change even though there’s arguably better options. It’s too arbitrary yet too essential and it goes in the same box as the metric second/minute/hour, the dozenal system and the Holocene calendar.

              Here’s a challenge though: try and devise a Martian calendar! That one is not standardised yet. I had good fun trying to match the Martian sol and year to metric units of time and maybe giving some serious use to the kilosecond, megasecond and gigasecond

              As an extra, here’s a 1000-year version of the graph at the start of the reply, with the current year 12 025 of the Holocene calendar :^) in the middle

              • This is fantastic. I’m going to have to spend more time with it.

                Since we’re discussing timescales over which there’s a not insignificant chance something radical will happen to society, there’s also the fact that the day is getting longer by 2ms every hundred years. If you’re scheduling out 625,000 years, that’s 12-some seconds by the end, compounded - 6 extra seconds every day by the 312,000th year, etc.

  • partial_accumen@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    13 days ago

    I regularly work with Americans, Canadians, and Europeans. So many times each group defaults to their own format and mistakes occur I gave up on all the formats listed by OP. If i have to write a date in correspondence its like: Feb 27th 2013. No ambiguity. No one has ever challenged me on it either. It is universally understood.

      • starman2112@sh.itjust.works
        link
        fedilink
        arrow-up
        0
        ·
        edit-2
        13 days ago

        My biggest point of professional pride was the time my boss sent a mass group text to all his employees asking them to format dates the way I do

        He didn’t say it was the format I used, so I didn’t speak up and say “it’s actually ISO-8601,” because I assume my coworkers who were used to writing things like “February 27 8:00-4:45” rather than “2013-02-27 8:00-4:45 (8:45)” may stab me

    • Mr. Satan@lemm.ee
      link
      fedilink
      arrow-up
      0
      ·
      13 days ago

      Jokes on you, I can’t fucking rember which English month is which. April, May, July and Autum is just a grey mass to me.

      • SippyCup@feddit.nl
        link
        fedilink
        English
        arrow-up
        0
        ·
        13 days ago

        Autumn is a season lol

        I think you mean August.

        September, October, November and December are easy to remember because they’re Roman numbers. 7-10 But two off because at some point they added July and August to honor Julius Augustus. So “month seven” is the 9th month.

        • Mr. Satan@lemm.ee
          link
          fedilink
          arrow-up
          0
          ·
          13 days ago

          Honestly I do remember some months, like starting and ending of the year. I don’t encounter English month names on a regular enough basis to remember their order and my month names in no way relate to English ones.

          So anything after February and before August I have to google each time I encounter them.

          It doesn’t help that we don’t even have month abbreviations like English does (Jan, Feb, etc.).

    • FelixCress@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      13 days ago

      You meant 27th Feb 2013, right? It is utterly moronic to have day in the middle irrespectively if you start with or finish on the year.

      • starman2112@sh.itjust.works
        link
        fedilink
        arrow-up
        0
        ·
        13 days ago

        I assume it depends on geographical region, but I’ve never heard someone say out loud “27th of February, 2013.” It’s always “February 27th, 2013.” Writing it down like that could be easier to parse for people who are used to that format

          • starman2112@sh.itjust.works
            link
            fedilink
            arrow-up
            0
            ·
            edit-2
            12 days ago

            No, I’m American

            I want to get ahead of this debate, and point out that a) “American” as a demonym for literally anyone in the western hemisphere is largely useless, b) the USA is the only country which includes “America” in its name, and c) USian is not more precise because there are two countries with United States in their name.

              • starman2112@sh.itjust.works
                link
                fedilink
                arrow-up
                0
                ·
                edit-2
                12 days ago

                No, I’m American. It looks like you started writing this comment before I made the edit to mine, so I’ll go ahead and copy/paste it here

                a) “American” as a demonym for literally anyone in the western hemisphere is largely useless, b) the USA is the only country which includes “America” in its name, and c) USian is not more precise because there are two countries with United States in their name.

                • FelixCress@lemmy.world
                  link
                  fedilink
                  arrow-up
                  0
                  ·
                  12 days ago

                  So, you are a USian. I thought so. I never ever heard someone saying “February 27th 2018”, I think only USians do that. Everywhere else it is 27th of February 2018 which is logical.

      • partial_accumen@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        13 days ago

        You meant 27th Feb 2013, right?

        Does it matter anymore with this format? You figured out the exact day, month, and year irrespective of the order.

        • shrugs@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          13 days ago

          It’s not about understanding. It’s about sorting,

          Everybody understand both notations, but if you use it for filenames sorting is important. Natural sorting order is an important feature that should be considered.

          day month year is just stupid in that regard. Not only does the of the month depend on the language, but also if sorted you get the first of every month grouped together.

  • Lovable Sidekick@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    13 days ago

    Is there an ISO standard for how to say, “I don’t agree with a very specific aspect of your politics, or a specific statement one of your political heroes made, for a very specific reason, but I’m not declaring myself at the extreme horrible kitten-eating end of whatever political spectrum you live in.”

  • essteeyou@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    13 days ago

    My goodness, some of the comments in here must come from people who thought that those writing the standard were morons who did no research.

    • Katana314@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      12 days ago

      I don’t think they’re morons…just slaves to convention and compatibility. Not many ways to get away from that and justify it.

  • ...m...@ttrpg.network
    link
    fedilink
    arrow-up
    0
    ·
    13 days ago

    …nah man, 27 february 2013 (or 2013 february 27 if you want to append 24.00 time) leave no room for ambiguity…

    • CarrotsHaveEars@lemmy.ml
      link
      fedilink
      arrow-up
      0
      ·
      12 days ago

      No hablo inglés y no sé cuál es “february”. How about that? Only Arabic numbes survive internationally.

  • ‮redirtSdeR@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    12 days ago

    Feb 27th 2013

    Boom. Everything is in a different format so you can order it however you want and it’s still readable.

    • Bourff@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      12 days ago

      Why use abbreviations in your preferred language when you can have a solution that is language-agnostic and universal (for a given calendar) ?

      • WoodScientist@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        0
        ·
        12 days ago

        Because if there’s one problem simple enough that I trust an LLM or translation app not to fuck up, it’s simple translation of month labels from on language to another. If you’re writing in English, it’s reasonable to have month abbreviations in English. If someone wants to read it in a different language, they’re going to have to use translation software or hire a human translator to do it. And regardless of translation method, simple date translation will be among the most reliable and faithfully translated parts.

        • Bourff@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          12 days ago

          Or, you know, just use plain old numerals that almost everyone on earth can read and understand without needing a translation in the first place. Why the fuck do people need to bring LLMs where it’s not needed ? Is it to pump their NVDA stocks?

  • vga@sopuli.xyz
    link
    fedilink
    arrow-up
    0
    ·
    12 days ago

    ISO 8601 allows all kinds of crazy time stamps. The sweet spot is at the intersection of ISO 8601 and RFC 3339.