The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Time::ZoneInfo - Perl extension for returning a list of Time Zones...

SYNOPSIS

        use Time::ZoneInfo;
        my $zones = Time::ZoneInfo->new();
        foreach my $zone ($zones->zones) {
                # print $zone->zone . ' - ' . $zone->offset . "\n";
                print $zone . "\n";
        }

DESCRIPTION

An OO interface to accessing a list of timezones. This is useful if you want to provide an interface for your user to choose one of the available time zones.

This will be the final release of Time::ZoneInfo as we hope it will be replaced by code in the perl date time project - see http://datetime.perl.org/.

Currently it is fairly hard coded to work on Debian Linux, but I will take any suggesitons on other locaitons so it can automatically fall back to other file locations, and provide your own as an alternative.

METHODS

new

You can specify the zonetab file by passing in zonetab => 'file/location'

regions

Return an array (or array ref) to the list of regions

zones ([region])

Return zones (optionally just for one region)

ERRORS

You can read $Time::ZoneInfo::ERROR for an error message at any time.

CONTRIBUTIONS

Thanks to Richard Carver <cpan.org-rnc@thecarverzone.com> for finding issues processing comments.

AUTHOR

Scot Penrose, <scott@cpan.org>

SEE ALSO