what_time_is_it - Now?
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
$ 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
To set a short cut in your .bashrc
.bashrc
alias now='what_time_is_it'
.what_time_is_it was read for configuration.
.what_time_is_it
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.
--rc
what_time_is_it --rc ./.foo
This command does NOT have considered offset about DST. Adjust it yourself.
<http://www.timeanddate.com/time/map/>
Dai Okabayashi <bayashi@cpan.org>
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
To install App::WhatTimeIsIt, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::WhatTimeIsIt
CPAN shell
perl -MCPAN -e shell install App::WhatTimeIsIt
For more information on module installation, please visit the detailed CPAN module installation guide.