From 177e4734a82d8f9eb38cb0f49a4c538cac0da953 Mon Sep 17 00:00:00 2001 From: Astrid Date: Thu, 10 Aug 2017 09:25:47 -0700 Subject: Initial version --- worldclock | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 worldclock (limited to 'worldclock') diff --git a/worldclock b/worldclock new file mode 100755 index 0000000..57c6926 --- /dev/null +++ b/worldclock @@ -0,0 +1,18 @@ +#!/bin/bash + +ZONES="America/Los_Angeles UTC Europe/London Europe/Berlin Asia/Kuala_Lumpur Asia/Singapore unix" + +while : +do + clear + echo + for TZ in $ZONES ; do + if [ $TZ = "unix" ] ; then + TIME=$( date +%s ) + else + TIME=$( date ) + fi + echo -e $TIME "\t" $TZ + done + sleep 1 +done -- cgit 1.4.1-2-gfad0