blob: b31dc6ac4f09603f74abfd7f6b87ba0fbca4da9b (
about) (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
#
msgid ""
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 ""
msgid "title: Simple filename timestamp"
msgstr ""
msgid "date: 2020-08-12"
msgstr ""
msgid "layout: post"
msgstr ""
msgid "lang: en"
msgstr ""
msgid "ref: simple-filename-timestamp"
msgstr ""
msgid "updated_at:"
msgstr ""
msgid ""
"./my-program.sh > my-program.$(date -I).log\n"
"cp post-template.md _posts/$(date -I)-post-slug.md\n"
msgstr ""
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 ""
#~ msgid ""
#~ "title: Simple filename timestamp\n"
#~ "date: 2020-08-12\n"
#~ "layout: post\n"
#~ "lang: en\n"
#~ "ref: simple-filename-timestamp"
#~ msgstr ""
|