in reply to Date::Manip, how to view available TZ

Date::Manip is not your best option for converting times between different timezones as it doesn't support daylight savings offsets.

Try DateTime and DateTime::TimeZone that BTW, exports a function to get the names of all the available TZs: DateTime::TimeZone::all_names()

Replies are listed 'Best First'.
Re^2: Date::Manip, how to view available TZ
by jeanluca (Deacon) on Feb 14, 2006 at 13:42 UTC
    Thnx a lot. Is it possible to make a list like:
    Europe Amsterdam (CET) etc Africa ..

    So far I can:
    my @cat = DateTime::TimeZone::categories() ; foreach (@cat) { my @b = DateTime::TimeZone::names_in_category( $_ ) ; print "$_:\n" ; foreach (@b) { print " $_\n" ; } etc ; }
    How do I convert something like Africa/Abidjan to a short name abbreviation ?

    Luca