• cerberus@lemmy.world
    link
    fedilink
    English
    arrow-up
    27
    ·
    1 year 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.

    • snek_boi@lemmy.ml
      link
      fedilink
      arrow-up
      3
      ·
      1 year 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

      • Samsy@lemmy.mlOP
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        I did this in the past and I would search through my notes… If I had notes ffs.

        • snek_boi@lemmy.ml
          link
          fedilink
          arrow-up
          1
          ·
          1 year 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.

          • cerberus@lemmy.world
            link
            fedilink
            English
            arrow-up
            1
            ·
            1 year 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