NAME
what_time_is_it - Now?
SYNOPSIS
what_time_is_it [--format=<format>] [--city=<city>...] [--stderr] [--rc=<rcfile>]
OPTIONS:
--format POSIX time format (default: "%a, %d %b %Y %H:%M")
--city colon separated string like City_Name:Time_Offset (ex. Tokyo:9)
--stderr output to STDERR (default: STDOUT)
--rc your rcfile path (default: .what_time_is_it)
--version show the version
-h --help show this help
EXAMPLE
$ what_time_is_it --format "%a, %d %H:%M" --city Tokyo:9 --city NY:-4 --city London:0
Tokyo Sat, 20 09:25
NY Fri, 19 20:25
London Sat, 20 00:25
RECOMMEND
To set a short cut in your .bashrc
alias now='what_time_is_it'
CONFIGURATION
.what_time_is_it
was read for configuration.
format: "%a, %d %H:%M"
city: Tokyo:9, NY:-4, London:0
stderr: 1
If you set the --rc
option, you can use your custom rcfile.
what_time_is_it --rc ./.foo
CAVEAT
This command does NOT have considered offset about DST. Adjust it yourself.
SEE ALSO
<http://www.timeanddate.com/time/map/>
AUTHOR
Dai Okabayashi <bayashi@cpan.org>
LICENSE
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.