diff options
Diffstat (limited to '')
-rw-r--r-- | po/en.po | 58 |
1 files changed, 57 insertions, 1 deletions
@@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2025-04-29 20:01-0300\n" +"POT-Creation-Date: 2025-04-30 04:52-0300\n" "PO-Revision-Date: 2025-04-29 19:46-0300\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -46,3 +46,59 @@ msgid "" msgstr "" "This is my personal website where I write articles, publish software and " "more related work." + +#. type: Title = +#: src/content/en/tils/2020/08/12/filename-timestamp.adoc:1 +#, no-wrap +msgid "Simple filename timestamp" +msgstr "" + +#. type: Plain text +#: src/content/en/tils/2020/08/12/filename-timestamp.adoc:7 +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 "" + +#. type: delimited block - +#: src/content/en/tils/2020/08/12/filename-timestamp.adoc:12 +#, no-wrap +msgid "" +"./my-program.sh > my-program.$(date -I).log\n" +"cp post-template.md _posts/$(date -I)-post-slug.md\n" +msgstr "" + +#. type: Plain text +#: src/content/en/tils/2020/08/12/filename-timestamp.adoc:16 +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 "" + +#. type: Plain text +#: src/content/en/tils/2020/08/12/filename-timestamp.adoc:20 +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 "" + +#. type: delimited block - +#: src/content/en/tils/2020/08/12/filename-timestamp.adoc:27 +#, no-wrap +msgid "" +"# inside my-program.sh\n" +"echo \"Program started at $(date -Is)\"\n" +"# output is:\n" +"# Program started at 2020-08-12T09:04:58-03:00\n" +msgstr "" + +#. type: Plain text +#: src/content/en/tils/2020/08/12/filename-timestamp.adoc:31 +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 "" |