Last active
August 8, 2020 19:58
-
-
Save alabamenhu/70f753835e0f7a28f7ad7e2d56b9603e to your computer and use it in GitHub Desktop.
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
use DateTime::Timezones; | |
sub MAIN (**@timezones) { | |
react whenever Supply.interval(1) { | |
my $time = DateTime.new: now; | |
say " {.hh-mm-ss} {.tz-abbr}\t{.olson-id}" | |
for @timezones.map({$time.in-timezone: $_}); | |
print "\x001b[F" xx @timezones; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment