summary refs log tree commit diff
path: root/bin/now
diff options
context:
space:
mode:
Diffstat (limited to 'bin/now')
-rwxr-xr-xbin/now6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/now b/bin/now
new file mode 100755
index 0000000..7c312b1
--- /dev/null
+++ b/bin/now
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+case "$1" in
+    -here) exec date +%Y-%m-%dT%H:%M:%SZ%:z ;;
+    *)     exec date -u +%Y-%m-%dT%H:%M:%SZ ;;
+esac