summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2022-11-18 18:21:01 +0100
committerRobert Günzler <r@gnzler.io>2022-11-18 18:38:23 +0100
commiteffac1d13de65e5687cedb072188d01d0d388819 (patch)
tree6b246b9ccb80f61572d41f7c49509e5de64bfe8e /bin
parentd926185e405af5dcdf2d23c2d50366d68ccaa678 (diff)
bin/now: update
Diffstat (limited to 'bin')
-rwxr-xr-xbin/now5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/now b/bin/now
index 7c312b1..77892f3 100755
--- a/bin/now
+++ b/bin/now
@@ -1,6 +1,7 @@
 #!/bin/sh
 
 case "$1" in
-    -here) exec date +%Y-%m-%dT%H:%M:%SZ%:z ;;
-    *)     exec date -u +%Y-%m-%dT%H:%M:%SZ ;;
+-here) date +%FT%TZ%:z ;;
+-net) date -u +%F"$(beats)" ;;
+*) date -u -Iseconds ;;
 esac