Shane Landrum > Net-ICal-0.15 > Net::ICal::Timezone

Download:
Net-ICal-0.15.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  4
Open  0
View Bugs
Report a bug
Source  

NAME ^

Net::ICal::Timezone -- class for representing VTIMEZONEs

DESCRIPTION ^

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.

SYNOPSIS ^

    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)
        ]
        );

METHODS ^

new(%args)

Makes a new Timezone object. Permissible arguments are:

}; =end testing

new_from_ical ($text)

Takes iCalendar text as a parameter; returns a Net::ICal::Timezone object.

INTERNAL METHODS ONLY ^

Use these outside this module at your own peril.

validate($self)

This routine validates the creation arguments we were given to make sure that we have all the necessary elements to create a valid VTIMEZONE.

create($class, %args)

This is an internal function that sets up the object. It mainly establishes a Class::MethodMapper data map and hands off creation of the object to Net::ICal::Component.

SEE ALSO ^

More documentation pointers can be found in Net::ICal.