4 ms·
I don't think I have ever seen %Y%m%d%H%M%S used in real life.
by jeffbee 3y ago
I don't think I have ever seen %Y%m%d%H%M%S used in real life.
- wood_spirit 3y agoin datasets that I’ve worked with it is so incredibly common and so incredibly slow that I’ve previously made a fast library to work with them: https://github.com/williame/TimeMillis https://github.com/williame/TimeMillis Not as fast as SIMD, perhaps, but much faster than the Java standard library…
- vardump 3y agoThat's a very common format.
- deleted 3y ago[deleted]
- morelisp 3y agoOther than RRSIG (which I would argue is not at all common), where have you seen it?
- masklinn 3y agoTimestamped filenames.
- morelisp 3y agoWhenever I've seen it on timestamped filenames I've also needed sub-second precision. If that's a performance concern, a (potentially zero-padded, but realistically you don't even needed that) Unix timestamp works just as well.
- wongarsu 3y agoI've seen lots of %Y%m%d on filenames timestamped by humans. People timestamp stuff for different reasons. If you do it to avoid collisions then adding sub-second precision makes sense, but in many contexts second or even day precision is all you care about. The important point is that %Y%m%d%H%M%S is human parsable and still sorts correctly (though humans typically prefer %Y-%m-%d %H:%M:%S for readability)
- horse666 3y ago[dead]
- tjoff 3y agoYou mean without delimiters, or? Stripping superfluous delimiters in logs isn't unusal.
- tuukkah 3y agoSweden uses "%Y-%m-%d %H:%M:%S" - removal of the separators using SIMD left as an exercise ;-) https://en.wikipedia.org/wiki/Date_and_time_notation_in_Sweden https://en.wikipedia.org/wiki/Date_and_time_notation_in_Swed...
- GordonS 3y agoChina does too, and IIRC Japan and South Korea.
- dahart 3y agoNothing wrong with not having seen it, but I default to time stamps like this for log files, I use it all the time in scripts. I even also do it manually and have an alias in my .bashrc I call ‘now’ that spits out a call to date with that format string. This is, obviously, useful for organizing and sorting and finding files & folders by date & time. (And, hopefully obviously, creation & mod times on files are completely unreliable for this once you factor in copying & archiving.)