• glimse@lemmy.world
    link
    fedilink
    arrow-up
    18
    ·
    edit-2
    15 hours ago

    NO. You need a character per digit and you always want the leading 0 shown.

    YYYY-MM-DD

          • Pup Biru@aussie.zone
            link
            fedilink
            English
            arrow-up
            4
            ·
            14 hours ago

            you should never make the assumption that software you use is smart, or even not complete garbage

            …and file managers aren’t the only things that display lists of files. low-level tooling should not be “smart” beyond the most basic sorting without specifically being told first

            • Laurel Raven@lemmy.zip
              link
              fedilink
              English
              arrow-up
              2
              ·
              10 hours ago

              Then there’s the problem with “smart” sorting like Windows Explorer does: in a folder with hex based naming, such as the gpo policy folders for an AD domain, it blends alphabetic and numeric in weird ways where it treats number strings as whole numbers in the middle, where a123e would show up after a19bc, as an example, even though it should sort first

              (Sorry, tangent)

            • arty@feddit.org
              link
              fedilink
              English
              arrow-up
              1
              ·
              14 hours ago

              I only objected to the use of “only” in the comment above. I’d like to object to “never” as well.

          • glimse@lemmy.world
            link
            fedilink
            arrow-up
            2
            ·
            14 hours ago

            …And you assume you will only ever look at those files with that file manager forever…

            There is no downside to writing the leading zeroes pretty much anywhere except when aesthetics matter (event flyers, etc)

            • arty@feddit.org
              link
              fedilink
              English
              arrow-up
              2
              ·
              14 hours ago

              I am a big fan of ISO8601, and I only objected to your use of “only” in the comment above.