absentbird

joined 2 months ago
[–] absentbird@lemmy.world 1 points 9 hours ago

We're just talking about the filename, the exact creation time is tracked by the OS. Plus I'd imagine most documents also have a time and date inside. The file name is mostly for sorting and human readability.

[–] absentbird@lemmy.world 2 points 13 hours ago

I understand you feel very strongly about four digit years, but I really don't see any situation that I couldn't sort out with a simple script.

Usually I don't put dates in file names in the first place, but when I do I use the UTC timestamp; a date without a timezone is inherently fuzzy, and it's easier to compare and differentiate numerical times.

If someone used two digit years in their naming convention I wouldn't even blink, let alone get the woodchipper, life is too short to get angry over stuff like that.

[–] absentbird@lemmy.world 2 points 14 hours ago (4 children)

It's just a filename, calm down. The created by date is tracked by the file system and the repo.

[–] absentbird@lemmy.world 5 points 14 hours ago (1 children)

The exact date of creation is usually preserved in the filesystem, we're just talking about what to name the documents themselves. The filename should be short and to the point, it gets truncated if it's too long, and on windows you only have 260 characters for the entire path to the file plus the name.

[–] absentbird@lemmy.world 4 points 16 hours ago (8 children)

Here you go gramps:

(shortD) => {
    return parseInt(shortD.slice(0, 2), 10) > 50 ? "19" + shortD : "20"+shortD;
}
[–] absentbird@lemmy.world 22 points 20 hours ago (24 children)

ISO 8601 is YYYYMMDD (or YYYY-MM-DD in extended format)

Are you really going to wood chipper someone for leaving off the leading 20? I think we can safely infer the century and millennium with a high confidence, why not trade them for two extra name characters?

[–] absentbird@lemmy.world 1 points 1 day ago

They already live in different states; New York for AOC, New Jersey for John Stewart. They both start with 'New', but they are not the same state.