Net::ICal::Daylight - class for representing DAYLIGHT timezone sections


Net-ICal documentation  | view source Contained in the Net-ICal distribution.

Index


NAME

Top

Net::ICal::Daylight -- class for representing DAYLIGHT timezone sections

DESCRIPTION

Top

This module represents a DAYLIGHT section in a VTIMEZONE, which details information about when a particular timezone is on daylight savings time. It includes information about when the switch back to standard time happens.

SYNOPSIS

Top

    # really, look at Timezone.pm for a better usage example;
    # this is totally untested

    my $s = Net::ICal::Daylight->new(
        tzoffsetto => '-0400',
        tzoffsetfrom => '-0500',
        rdate => Net::ICal::Recurrence->new ( ...)
        tzname => 'EDT'
    );

METHODS

Top

new(%args)

Makes a new Daylight object. For permissible parameters, see Net::ICal::Standard.

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

INTERNAL METHODS ONLY

Top

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 VDAYLIGHT. =cut

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

Top

More documentation pointers can be found in Net::ICal::Timezone and Net::ICal::Standard.


Net-ICal documentation  | view source Contained in the Net-ICal distribution.