Created
June 6, 2018 05:47
-
-
Save michiel/3de928f8063a2e497ea870d5b073ab54 to your computer and use it in GitHub Desktop.
terminal world clock
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function clock() { | |
clear | |
TZ=US/Pacific date "+LA : %Y/%m/%d %a — %I:%M %p" | |
TZ=US/Eastern date "+New York : %Y/%m/%d %a — %I:%M %p" | |
TZ=Europe/Amsterdam date "+Amsterdam : %Y/%m/%d %a — %I:%M %p" | |
TZ=Asia/Bangkok date "+Bangkok : %Y/%m/%d %a — %I:%M %p" | |
TZ=Japan date "+Tokyo : %Y/%m/%d %a — %I:%M %p" | |
TZ=Australia/Melbourne date "+Melbourne : %Y/%m/%d %a — %I:%M %p" | |
} | |
while true; | |
do | |
clock; | |
sleep 30; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment