• glimse@lemmy.world
        link
        fedilink
        arrow-up
        19
        ·
        edit-2
        4 days ago

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

        YYYY-MM-DD

        • palordrolap@fedia.io
          link
          fedilink
          arrow-up
          3
          ·
          3 days ago

          It’s close, sure, but actually no. That standard currently requires the letter T (and no white-space) between date and time when both are present, and, frankly, that’s ugly and a space should be allowed.

          An old version of the standard allowed the space, and GNU’s coreutils seem to have carried on the tradition, so I’m not alone in thinking this.

        • zqps@sh.itjust.works
          link
          fedilink
          arrow-up
          6
          ·
          edit-2
          4 days ago

          No because it’s the global format that typically uses periods.

          D.M.Y (normal)
          Y-M-D (superior)
          M/D/Y (mental illness)

          Mixing up the formats and denominators makes this mess even worse.

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

            you should also always specify YYYY-MM-DD because often M and D ignores leading zeros, YY means the 2 digit suffix, and Y… well, i don’t even know what that is but i’m sure it’s something less specific than YYYY

            if we’re going to be picky about being clear about things, let’s be truly clear about things

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

              YYYYY would be something like “The Year of Our Lord, Two-Thousand and Twenty-Six” (or probably just “Twenty Twenty-Six”, but the other is more ridiculous so I’ll go with that)

              Y would just be “6” but I can’t think of any context where that would ever be used

              • Pup Biru@aussie.zone
                link
                fedilink
                English
                arrow-up
                2
                ·
                3 days ago

                i reckon Y might be something like years since 1970 or some other epoch (we do things like week number of the year, day number of the year, etc so i think that’s kinda similar)