• RandomVideos@programming.dev
    link
    fedilink
    arrow-up
    4
    arrow-down
    4
    ·
    1 day ago

    Why would the year, the least important, need to be first?

    And why are the pieces of the pyramid made so the ISO standard is the only one that looks right? ss:mm:hh:DD:MM:YYYY would also order the numbers based on length, but would look terrible if represented like that

    • prole@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      5 hours ago

      Why would the year, the least important, need to be first?

      Maybe it’s not least important for everyone?

      Almost like the preference can change depending on application…

      If I’m looking at a folder full of spreadsheets, one each month (or even day) for several years, and they are all titled according to YYYY-MM-DD. All you need to do is sort by filename and now you have it broken down by year, into one spreadsheet per month/day.

      And only needed to click one button to sort them into an easily readable format.

    • MonkderVierte@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      9 hours ago

      I often see the year being the most important in my archive. Followed by month, then day (which is often left out because the document is monthly).

      And the why; because it sorts alphabetically.

    • spooky2092@lemmy.blahaj.zone
      link
      fedilink
      English
      arrow-up
      21
      ·
      1 day ago

      Why would the year, the least important, need to be first?

      For proper ordering for one. ISO8601 is objectively the best way to label anything that might need to be ordered based on time. This forces data points to line up properly in chronological order, and makes it easy to time slice as needed.

      And why are the pieces of the pyramid made so the ISO standard is the only one that looks right?

      Because it’s the only one that goes from largest value to smallest. It’s first because you start from the largest as the base (year) and work down through size to seconds.

      ss:mm:hh:DD:MM:YYYY would also order the numbers based on length, but would look terrible if represented like that

      Agreed. And any sort of data analysis would be so much harder

      • RandomVideos@programming.dev
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        1 day ago

        Arent there uses other than ordering files?

        The ISO standard is best for ordering files, but that doesnt mean its good for other things

        Its impossible to confuse it with the other 2 presented in this post so you could use it for files and use another one for other things

        Edit: i may have been misunderstanding the context in which the ISO standard is claimed to be superior

        • verdigris@lemmy.ml
          link
          fedilink
          arrow-up
          7
          ·
          23 hours ago

          The fact that you can’t confuse it with other formats is precisely the advantage. With any other format (besides the awful lettered month) you have to use context clues to be sure you’re reading it correctly if the day is less than 13.

        • olympicyes@lemmy.world
          link
          fedilink
          English
          arrow-up
          7
          arrow-down
          1
          ·
          1 day ago

          Europe: 10/12/2025 USA: 12/10/2025 If you don’t have context as to which system this is, would 2025/12/10 make things less ambiguous?

          • DarthFreyr@lemmy.world
            link
            fedilink
            arrow-up
            4
            ·
            23 hours ago

            To be fair, proper ISO 8601 specifies hyphens as the separator between date elements, and I don’t think I’ve ever seen a XXXX-XX-XX (with hyphens) be used for YYYY-DD-MM. Just XX-XX could perhaps be ambiguous, but fortunately that’s not allowed by the standard, and anyone using just year-day for XXXX-XX is absolutely trolling. YYYY-DDD could have a use, though should really use a separate separator to not sort together IMO. A year-week designation could possibly look like XXXX-XX, but that seems unlikely to just be dropped in that format without context, at least to my western US sensibilities.

    • JayDee@lemmy.world
      link
      fedilink
      arrow-up
      4
      arrow-down
      1
      ·
      23 hours ago

      Well you read the least frequently changing part first, the year, because if you read the seconds first, then the thing’s already changed before you’ve even finished reading it. /s