this post was submitted on 09 Aug 2023
1921 points (93.1% liked)

Memes

45587 readers
1229 users here now

Rules:

  1. Be civil and nice.
  2. Try not to excessively repost, as a rule of thumb, wait at least 2 months to do it if you have to.

founded 5 years ago
MODERATORS
1921
2023-08-09.jpg (lemmy.ml)
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/[email protected]
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 41 points 1 year ago (12 children)

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] 4 points 1 year ago (8 children)

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] 1 points 1 year ago (1 children)

Can you give more context, what are you using? Language / system / etc?

[–] [email protected] 1 points 1 year ago (1 children)

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] 1 points 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

load more comments (6 replies)
load more comments (9 replies)