• corytheboyd
    link
    fedilink
    932 years ago

    Christ, do this many people really find iso8601 hard to read? It’s the date and the time with a T in the middle.

    • @[email protected]
      link
      fedilink
      402 years ago

      Not “many people.” Americans. Americans find it hard to read. I’m not 100% sure but I’m fairly certain everyone else in the world agrees that either day/month/year or year/month/day is the best way to clearly indicate a date. You know, because big to small. America believes month/day/year for some stupid fucking reason.

      • @[email protected]
        link
        fedilink
        52 years ago

        I am an American and I use it religiously for the record. Especially for version numbers. Major.minor.year.month.day.hour.minute-commit. It sorts easy, is specific, intuitive, and makes it clear which version you’re using/working on.

      • @[email protected]
        link
        fedilink
        English
        72 years ago

        Day/month/year is not in the same category as y/m/d. That crap is so ambiguous. Is today August 9th? Or September 8th? Y/m/d to the rescue.

          • @[email protected]
            link
            fedilink
            72 years ago

            Or anyone who has to work with Americans. Especially when you also work with other countries as well. You can’t assume dd/mm/yyyy or mm/dd/yyyy blindly in either case. yyyy-mm-dd solves the issue entirely because both sides at least agree that yyyy-dd-mm isn’t a thing.

      • @[email protected]
        link
        fedilink
        202 years ago

        I’m pretty sure it’s because of the way we say it. Like, “May 6th, 2023”. So we write it 5/6/2023.

        That said, I think it’s fucking stupid.

          • @[email protected]
            link
            fedilink
            12 years ago

            I will never stop being impressed by the absolute insanity that is British rhyming slang. Apparently I’ve never heard seppo before, short for septic tank, rhyming with Yank. I just learned a new mildy derogatory term for Americans, nice

        • @[email protected]
          cake
          link
          fedilink
          112 years ago

          In British English you say the date before the month as well. I know that even saying the month first sounds very jarring too me.

        • @[email protected]
          link
          fedilink
          42 years ago

          I’m not an American and English isn’t my first language, so the US way to write dates always confused me. Now, I finally understand it! Many thanks, this is legitimately sooooo useful!

      • @[email protected]
        link
        fedilink
        6
        edit-2
        2 years ago

        America believes month/day/year for some stupid fucking reason.

        It’s because of Great Britain. We adopted it from them while a bunch of colonies and it regionally spread to others.

        America didn’t change, probably because we have been so geographically isolated (relatively speaking), whereas the modern day UK did change to be more like Europe.

        People get so goddamn hot and bothered by things that ultimately don’t matter almost like it is a culture war issue. Americans maintain the mm/dd/yyyy format because that’s how speak the dates.

        I wouldn’t say it is us Americans who “find it hard to read” if someone from elsewhere in the world sees an American date, knows we date things in the old way they used to date things, and then loses their minds over having to swap day for month. Everyone just wants to be contrarian and circle jerk about ISO and such.

        Us devs, on the other hand, absolutely should use the same format of yyyy-mm-dd plus time and time zone offset, as needed. There’s no reason, in this age, for dates to be culturally distinct in the tech space. Follow a machine-first standard and then convert just like we do with all other localizatons.

        But hey, if people want to be pedantic, let’s talk about archaic gendered languages which are completely useless and has almost zero consistency.

        • The Ramen Dutchman
          link
          fedilink
          12 years ago

          Bruh even Britain uses day-month-year, even speaks them as “9th of September”.
          “September 9th” doesn’t even make sense in English as there is only 1 September in a year.

          America did this.
          There is no excusing that.

    • coffeecup
      link
      fedilink
      142 years ago

      I think it’s fair that programmatic and human readable can be different. If someone is putting in the month word for a logging system they can fuck right off though

      • @[email protected]
        link
        fedilink
        12 years ago

        If someone is putting in the month word for a logging system they can fuck right off though

        That way you can sort the months of the year, in order:

        • April
        • August
        • December
        • February
        • January
        • July
        • June
        • March
        • May
        • November
        • September
    • dilawarB
      link
      fedilink
      English
      22 years ago

      As long as they use letter for months, like Jul 09, 2013 its fine. Otherwise prefer a sorted timescale version. Either slow changing to fast changing yyyy mm dd or fast to slow dd mm yyyy.

      • @[email protected]
        link
        fedilink
        52 years ago

        The letters make no sense to me. Like Jul, Jun, I’m constantly mixing them up. Give me a good solid number like 07 or 10. No mixing that up. Higher numbers come after lower numbers, simple as.

    • SeaJ
      link
      fedilink
      82 years ago

      I use it all the time when writing dates.

  • Jamie
    link
    fedilink
    402 years ago

    I enforce ISO 8601 for the shared storage in my office. Before I got there, files were kinda stored in all kinds of formats, but mostly month first.

    I tell the person under me she can store her files in her user any way she wants, but if it goes into shared storage, it’s ISO 8601. I even have a folder in there called !Date format: YYYY-MM-DD Description to help anyone else remember.

    • Rootiest
      link
      fedilink
      English
      102 years ago

      Haha I did the same.

      It was the Wild West, no standard, everyone used their own date format all in the same shared storage.

      I’ve got most of the office doing it correctly now

  • xttweaponttx
    link
    fedilink
    812 years ago

    It warms my heart to see so many comments in the camp of “I use it everywhere”. Absolutely same here. You are my people.

  • jecxjo
    link
    fedilink
    English
    52 years ago

    I always have written my dates this way. It’s one of those things that always seemed weird to me and then when I realize that only in America do we write our dates MM-DD-YYYY /facepalm

    • PXoYV1wbDJwtz5vf
      cake
      link
      fedilink
      52 years ago

      I refuse to believe anyone does this. I think the inconsistency comes down to how people speak. “The meeting will be held on the 10th of January 2023” = 10/01/2023 but “January 10, 2023” = 01/10/2023.

      I don’t know how you would have to torture your brain for it to feel at home with YYYY-DD-MM.

  • The Nitro Zeus
    link
    fedilink
    52 years ago

    Seeing as I do a lot of AV editing I use this format to keep track of Audio files I do production on. YYYYMMDD Filename Version. It’s often a case of working on a file and coming back to it weeks or months later, and in most cases there are multiple versions and revisions as I collaborate with my production partner.

    It helps me keep track of the timeframe, what it is and which version so I can ensure rendered versions I’m using in other directories or as assets in other files are consistent and up to date.

    The directories got quite messy and confusing initially until I adopted the ISO date format for this case.

  • @[email protected]
    link
    fedilink
    English
    392 years ago

    ISO 8601 is amazing for data storage and standardizing the date.

    Display purposes sure, whatever you feel like

    But goddammit if you don’t use ISO 8601 to store dates, I will find you, and I will standardize your code.

    • @[email protected]
      link
      fedilink
      42 years ago

      I actually need to standardize my code. I’ve got “learning F2” as something I want to do soon. The goal: use the exif data of my pictures to create [date in ISO 8601] - [original filename].[original file type termination]

      So a picture taken the third of march 2022 titled “asdf.jpg” would become “2022-3-3 - asdf.jpg”

      Help? lol

      • @[email protected]
        link
        fedilink
        62 years ago

        If you’re on Linux exiftool can get the creation date for you: exiftool -p '$CreateDate' -d '%Y-%m-%d' FILENAME, and you could run tgat in a loop over your files, something like:

        mkdir -p out
        for f in *.jpg
        do
        createdate=$(exiftool -p '$CreateDate' -d '%Y-%m-%d' "${f}")
        cp -p "${f}" "out/${createdate} - ${f}"
        done
        

        Obviously don’t justbgo running code some stranger just posted on the internet, especially as I haven’t tested it, but that should copy images from the current directory to a subdirectory called ‘out’ with the correct filenames.

        • metaStatic
          link
          fedilink
          22 years ago

          ok I think I finally need to ask

          What the fuck is up with the html code? Ive seen this in a lot of posts and it just throws me every time.

        • @[email protected]
          link
          fedilink
          12 years ago

          I’m using NixOS. Ext4 filesystem. As to language, I’m not entirely sure what you mean. If you refer to the character set in the filenames, I think there are no characters that deviate from the English alphabet, numbers, dashes, and underscores.

          • @[email protected]
            link
            fedilink
            English
            12 years ago

            Oh ok so you’re more so working with folder structure etc, so bash for when you plug-in a card?

            I’m thinking in more programmatic terms, there’s definitely some bash scripting you can execute. Or just go balls out and write a service that executes on systemctl

  • Sergeant_Voronin
    link
    fedilink
    252 years ago

    I have a watch that uses MM/DD for date, which pissed me off to no end. While looking for a way to change it to DD/MM, I found out that they actually used ISO-8601 and dropped the year. Now I don’t know how to feel about it.

      • @[email protected]
        link
        fedilink
        82 years ago

        ISO 8601 has spec for how to drop the year. You write it like --MM-DD (two dashes to indicate omission). Of course nobody really uses it beside the absolute nerds (e.g. me).

  • keeslinp
    link
    fedilink
    272 years ago

    ISO dates are the goat because they string compare correctly. Just yesterday I shaved 2 full seconds off a page transition by removing a date parse in the middle of a hot sorting loop. Everything should use ISO in my opinion.