Net::ICal::Timezone -- class for representing VTIMEZONEs |
Net::ICal::Timezone -- class for representing VTIMEZONEs
This module represents VTIMEZONEs, which detail important information about timezones. For any timezone, you need to know some important factors related to it, namely:
This object represents those concepts with arrays of Net::ICal::Standard and Net::ICal::Daylight objects. For more detail on why, see RFC2445 4.6.5.
If you want some real data to test this module against, see http://primates.ximian.com/~damon/icalendar/zoneinfo.tgz , which is a set of VTIMEZONE files that aims to describe every timezone in the world. We'll be relying on those files in a future release as a master timezone database. They're a translation of the Olsen timezone database found on Unix systems.
use Net::ICal::Timezone;
# we know this works my $tz = Net::ICal::Timezone->new_from_ical($ical_text); # we haven't tested this yet, patches welcome my $tz = Net::ICal::Timezone->new( tzid => 'America/New_York', standards => [ (Net::ICal::Standard objects) ], daylights => [ (Net::ICal::Daylight objects) ] ); =cut
new(%args)
Makes a new Timezone object. Permissible arguments are:
Net::ICal::Timezone -- class for representing VTIMEZONEs |