blob: e2d806f4ce467d22946a36027db7f8a0e886217e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#!/bin/bash
ZONES="America/Los_Angeles America/New_York UTC Europe/London Europe/Paris Pacific/Auckland Singapore unix"
HOMEZONE=America/Los_Angeles
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
echo
echo
#TZ=$HOMEZONE date +%T | sed -e 's/:/ . /g' | figlet -f banner
if [ x"$1" = x"loop" ]
then sleep 1 ; continue
else break
fi
sleep 1
done
|