]> code.delx.au - monosys/commitdiff
Multi-date script
authorJames Bunton <jamesbunton@delx.net.au>
Fri, 1 Nov 2013 12:04:05 +0000 (23:04 +1100)
committerJames Bunton <jamesbunton@delx.net.au>
Fri, 1 Nov 2013 12:04:05 +0000 (23:04 +1100)
bin/dates [new file with mode: 0755]

diff --git a/bin/dates b/bin/dates
new file mode 100755 (executable)
index 0000000..dfc2601
--- /dev/null
+++ b/bin/dates
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+list="
+UTC
+Australia/Sydney
+Australia/Perth
+Europe/London
+America/Chicago
+America/Los_Angeles
+"
+
+for tz in $list; do
+       printf "%-25s" "$tz"
+       TZ="$tz" date
+       echo
+done
+