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.
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.
AUTHOR
Scot Penrose, <scottp@dd.com.au>