|
@@ -3,11 +3,9 @@ AS=🌏
|
|
|
EU=🌍
|
|
|
AM=🌎
|
|
|
NIGHT="🌙"
|
|
|
-DAY="☀️ "
|
|
|
-
|
|
|
|
|
|
TZONES="America/Los_Angeles America/Denver America/New_York Europe/Amsterdam Asia/Tokyo Australia/Brisbane"
|
|
|
-H=`date +%H`
|
|
|
+H=`TZ=Europe/Amsterdam date +%H`
|
|
|
if (test $H -gt 2 -a $H -lt 9); then
|
|
|
WORLD=$AS
|
|
|
elif (test $H -gt 9 -a $H -lt 18); then
|
|
@@ -21,7 +19,7 @@ function print_clock() {
|
|
|
TZ=$1
|
|
|
H=$(TZ=$1 date +%H)
|
|
|
COLOR=""
|
|
|
- if (test $H -gt 8 -a $H -lt 19); then
|
|
|
+ if (test $H -gt 8 -a $H -lt 18); then
|
|
|
echo -n $WORLD
|
|
|
COLOR="\033[1;33m"
|
|
|
else
|
|
@@ -32,7 +30,7 @@ function print_clock() {
|
|
|
COLOR="\033[0;33m"
|
|
|
fi
|
|
|
|
|
|
- if (test $H -gt 19 -a $H -lt 23); then
|
|
|
+ if (test $H -gt 17 -a $H -lt 23); then
|
|
|
COLOR="\033[0;36m"
|
|
|
fi
|
|
|
echo -ne "${COLOR} $1\r\t\t\t\t: "
|