DateTime::TimeZone::Tzfile is a Perl module that contains tzfile (zoneinfo) timezone files.
SYNOPSIS
use DateTime::TimeZone::Tzfile;
$tz = DateTime::TimeZone::Tzfile->new("/etc/localtime");
if($tz->is_floating) { ...
if($tz->is_utc) { ...
if($tz->is_olson) { ...
$category = $tz->category;
$tz_string = $tz->name;
if($tz->has_dst_changes) { ...
if($tz->is_dst_for_datetime($dt)) { ...
$offset = $tz->offset_for_datetime($dt);
$abbrev = $tz->short_name_for_datetime($dt);
$offset = $tz->offset_for_local_datetime($dt);
An instance of this class represents a timezone that was encoded in a file in the tzfile(5) format. These can express arbitrary patterns of offsets from Universal Time, changing over time. Offsets and change times are limited to a resolution of one second.
This class implements the DateTime::TimeZone interface, so that its instances can be used with DateTime objects.
Product's homepage
Requirements:
· Perl