Skip to content

Instantly share code, notes, and snippets.

@RickCogley
Created February 14, 2015 23:32
Show Gist options
  • Save RickCogley/6c042d9e3cdbcc39b5e7 to your computer and use it in GitHub Desktop.
Save RickCogley/6c042d9e3cdbcc39b5e7 to your computer and use it in GitHub Desktop.
Echo times in various timezones to std out, for use in Automator Script
echo == Reference Times ==
echo -e "Tokyo - \t" `TZ=Asia/Tokyo date "+%Z (%z) %R %a %e %b %Y";`
echo -e "Hong Kong - \t" `TZ=Hongkong date "+%Z (%z) %R %a %e %b %Y";`
echo -e "Calcutta - \t" `TZ=Asia/Calcutta date "+%Z (%z) %R %a %e %b %Y";`
echo -e "Berlin - \t" `TZ=Europe/Berlin date "+%Z (%z) %R %a %e %b %Y";`
echo -e "London - \t" `TZ=GMT date "+%Z (%z) %R %a %e %b %Y";`
echo -e "New York - \t" `TZ=US/Eastern date "+%Z (%z) %R %a %e %b %Y";`
echo -e "Chicago - \t" `TZ=US/Central date "+%Z (%z) %R %a %e %b %Y";`
echo -e "Denver - \t" `TZ=US/Mountain date "+%Z (%z) %R %a %e %b %Y";`
echo -e "San Francisco - \t" `TZ=US/Pacific date "+%Z (%z) %R %a %e %b %Y"`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment