3 ms·
Zero-padded numerics are often used where lexical sorting is expected. Eg, "2021-12-30_author-of-file_title-text" (or similar) is a naming convention I use wit
by dredmorbius 5y ago
Zero-padded numerics are often used where lexical sorting is expected.
Eg, "2021-12-30_author-of-file_title-text" (or similar) is a naming convention I use with some frequency.
That is more useful if you use "2022-01-01" than "2022-1-1" for sorting.
(Or if we're keeping in the Long Now spirit, "02022-01-01".)
A directory full of such entries sorts naturally by the date in the filename itself. Given vagueries of Linux access / modify / change / birth datestamps, this has some utility.
(There are those who argue against putting metadata in filenames. I've come to favour putting relevant and robust metadata in filenames.)
(And avoiding spaces in filenames.)