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


Time-ZoneInfo documentation  | view source Contained in the Time-ZoneInfo distribution.

Index


NAME

Top

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

SYNOPSIS

Top

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

DESCRIPTION

Top

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

Top

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

Top

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

CONTRIBUTIONS

Top

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

AUTHOR

Top

Scot Penrose, <scott@cpan.org>

SEE ALSO

Top


Time-ZoneInfo documentation  | view source Contained in the Time-ZoneInfo distribution.