Per demands[1] to get the list of available timezones from $country_code, I created a simple module DateTime::TimeZone::FromCountry, available at: http://svn.bulknews.net/repos/public/DateTime-TimeZone-FromCountry/trunk/
What this module does is very simple: use DateTime::TimeZone; use DateTime::TimeZone::FromCountry; my $time_zone = DateTime::TimeZone->from_country('JP'); # Asia/Tokyo my @time_zone = DateTime::TimeZone->from_country('US'); # List of possible TZs my $time_zone = DateTime::TimeZone->from_country('United States'); # America/New_York the actual mapping data (from country to available timezones) is created using 'zone.tab' file in the Olson database. Dave: Do you think it's OK to upload this module to CPAN? Or, should it be part of DateTime::TimeZone module itself? I guess this module might have to be synchronized to DateTime::TimeZone anyway as Olson gets updated, so including it as part of DT::TZ would be nice. [1] See http://use.perl.org/~miyagawa/journal/31310 for the motivation and probable use case of this module. -- Tatsuhiko Miyagawa