Created
September 21, 2018 21:36
-
-
Save atomicstack/499d26c2b132816b1a6e91a5c73644d1 to your computer and use it in GitHub Desktop.
perl 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
$ perl -MDateTime -E 'printf( qq{%30s: %s\n}, $_, DateTime->now(time_zone => $_)->strftime(q{%a %F %T})) foreach qw{ US/Pacific US/Eastern Europe/London Europe/Amsterdam Europe/Berlin Asia/Singapore Australia/Melbourne }' | |
US/Pacific: Fri 2018-09-21 14:35:37 | |
US/Eastern: Fri 2018-09-21 17:35:37 | |
Europe/London: Fri 2018-09-21 22:35:37 | |
Europe/Amsterdam: Fri 2018-09-21 23:35:37 | |
Europe/Berlin: Fri 2018-09-21 23:35:37 | |
Asia/Singapore: Sat 2018-09-22 05:35:37 | |
Australia/Melbourne: Sat 2018-09-22 07:35:37 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment