More human-readable date
authorSergey Matveev <stargrave@stargrave.org>
Mon, 5 Oct 2020 08:49:49 +0000 (11:49 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Mon, 5 Oct 2020 08:49:49 +0000 (11:49 +0300)
t

diff --git a/t b/t
index 520e7c34f9b7225c058143cf96b8cb27d9f43196..12df2a0a35e61e56eb89c87625b48bfd1703384a 100755 (executable)
--- a/t
+++ b/t
@@ -34,7 +34,7 @@ fi
 case "$1" in
 a)
     shift
-    note=$NOTES_DIR/$(date '+%s')
+    note=$NOTES_DIR/$(date "+%Y%m%d-%H%M%S")
     [ $# -gt 0 ] && echo "$@" > $note || $EDITOR $note
     ;;
 d)