DateTime::TimeZone::TzfileDateTime::TimeZone::Tzfile is a Perl module that contains tzfile (zoneinfo) timezone files. | |
Download |
DateTime::TimeZone::Tzfile Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Andrew Main
- Publisher web site:
- http://search.cpan.org/~zefram/
DateTime::TimeZone::Tzfile Tags
DateTime::TimeZone::Tzfile Description
DateTime::TimeZone::Tzfile is a Perl module that contains tzfile (zoneinfo) timezone files. 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. Requirements: · Perl
DateTime::TimeZone::Tzfile Related Software