]> Sergey Matveev's repositories - t.git/blobdiff - t
More human-readable date
[t.git] / t
diff --git a/t b/t
index c1c85cc5fc9f092273218a06c096e0e48fcb8e20..12df2a0a35e61e56eb89c87625b48bfd1703384a 100755 (executable)
--- a/t
+++ b/t
@@ -1,6 +1,6 @@
 #!/bin/sh -e
 # t -- simple notes manager
-# Copyright (C) 2013-2019 Sergey Matveev <stargrave@stargrave.org>
+# Copyright (C) 2013-2020 Sergey Matveev <stargrave@stargrave.org>
 # Invoke the script without any arguments to briefly print all notes.
 # Otherwise you can specify the following ones:
 # a   -- add new note (either starts an editor if not arguments are specified,
@@ -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)