Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Fast-Nop39368329dYYYY-MM-DD aka the ISO format also allows to do date ordering via simple string sorting e.g. in filenames.
-
azuredivay1088329dwhy would u use full dates for files when Unix timestamp works better
for user readibility, convert it to a Datetime and let them choose their preffered format on demand -
hamolicious300329d@azuredivay I have a bunch of video files that I organise based on date, that's where I was going with the last point.
-
kamen6995329dDD MMM or something similar in plain text for readability, YYYYMMDD for names of files and folders.
-
kamen6995329d@azuredivay A full date is more readable than a UNIX timestamp. The timestamp might work better for when you need precision down to the second, but then again you can append hours, minutes and seconds to YYYY-MM-DD and have both the precision and readability.
-
tosensei8411329dany answer to this question that does not boil down to "USE! GODDAMN! ISO!" is a sign of mental deficiency.
-
Fast-Nop39368329d@MammaNeedHummus time_t is 64 bits these days and also solved in filesystems such as ext4, though the way they implemented it in ext4 pushes the issue out "only" by a few centuries.
That leaves old 32 bit machines and old filesystems like ext2/ext3. -
IntrusionCM14955329dRFC 3339 solves a lot of Interpretation issues with ISO.
So take RFC 3339 aka "the better ISO 8601".
https://ijmacd.github.io/rfc3339-is...
Thanks to whomever did this for explanation. -
jiraTicket2303328dPlacing day in the middle makes no sense, and confuses the hell out of us in Europe
Related Rants
The age-old question between `DD/MM/YYYY` or `MM/DD/YYYY`.
After some shower thoughts, my new preference is `YYYY/MM/DD` for Americans and Lithuanians (only 2 that I know) it just looks like the year has been placed first, otherwise, they read it as normal. To everyone else, the date is reversed and therefore will be read in reverse leading to the same answer.
In addition, `YYYY/MM/DD/some-dated-file` as a file path works exceptionally well for storing files as it uses the least amount of repetition.
rant
shower-thought
date-format
date