Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] timeconv.pl



On 19/12/05, ITSUMI ken-ichi <itsumi.ml@example.com> wrote:

> 2005/12/19, Josh Glover <jmglov@example.com>:
>
> > Here is a fun little Perl script that I hacked together (BSD licence,
> > so got nuts!):
>
> timeconv.pl: could not find a matching to timezone: Bagdhad
> timeconv.pl: could not find a matching to timezone: teheran
> timeconv.pl: could not find a matching from timezone: pyongyan
> timeconv.pl: could not find a matching to timezone: beijing
>
> There must be political deflections ;-P

Oh ha-ha! You think just because I am American I will make sure my
script excludes the Axis of Evil[1] and So On? ;)

Actually, you must not have the DateTime::TimeZone CPAN module
installed completely. Try running:

sudo perl -MCPAN -e 'install DateTime::TimeZone'

I think that will fix your disappeared capitals. :)

: jmglov@example.com; timeconv.pl tokyo baghdad 2005/12/19 21:33
                    Asia/Tokyo: 2005/12/19 21:33
                  Asia/Baghdad: 2005/12/19 15:33
: jmglov@example.com; timeconv.pl tokyo tehran 2005/12/19 21:33
                    Asia/Tokyo: 2005/12/19 21:33
                   Asia/Tehran: 2005/12/19 16:03
: jmglov@example.com; timeconv.pl tokyo pyongyang 2005/12/19 21:33
                    Asia/Tokyo: 2005/12/19 21:33
                Asia/Pyongyang: 2005/12/19 21:33
: jmglov@example.com; timeconv.pl tokyo beijing 2005/12/19 21:33
timeconv.pl: could not find a matching to timezone: beijing
: jmglov@example.com; timeconv.pl tokyo shanghai 2005/12/19 21:33
                    Asia/Tokyo: 2005/12/19 21:33
                 Asia/Shanghai: 2005/12/19 20:33

There is no Asia/Beijing in the Olson TZ Databse, you see:

http://twiki.org/cgi-bin/xtra/tzdatepick.html

So Asia/Shanghai is the one to use.

Cheers,
Josh

[1] http://www.satirewire.com/news/jan02/axis.shtml

Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links