# msgid "" msgstr "" msgid "" "title: Simple filename timestamp\n" "date: 2020-08-12\n" "layout: post\n" "lang: en\n" "ref: simple-filename-timestamp" msgstr "" msgid "" "When writing Jekyll posts or creating log files with dates on them, I " "usually struggle with finding a direct way of accomplishing that. There's a " "simple solution: `date -I`." msgstr "" msgid "" "Using this built-in GNU/Linux tool allows you to `touch $(date -I).md` to " "readily create a `2020-08-12.md` file." msgstr "" msgid "" "I always had to read `man date` or search the web over and over, and after " "doing this repeatedly it became clear that both `date -I` and `date -Is` " "(`s` here stands for seconds) are the thing that I'm looking for 95% of the " "time:" msgstr "" msgid "" "Both date formats are hierarchical, having the bigger time intervals to the " "left. This means that you can easily sort them (and even tab-complete them) " "with no extra effort or tool required." msgstr ""