Date::HolidayParser::iCalendar - iCalendar-like interface extension to Date::HolidayParser
0.4
This is an extension to Date::HolidayParser that adds an iCalendar-like interface to the holiday data.
use Date::HolidayParser; my $Holidays = Date::HolidayParser->new("$ENV{HOME}/.holiday"); ...
This is an extension to Date::HolidayParser that adds an interface that provides iCalendar-compatible data instead of the normal "raw" Date::HolidayParser format.
It ensures that UIDs generated are always the same, so you can depend upon them not changing between runs. The iCalendar data generated at the moment is very simple, and doesn't take into account recurrances (recurring events gets one event created per recurrance).
You can run any method Date::HolidayParser supports on a Date::HolidayParser::iCalendar object (but then you should probably be using Date::HolidayParser instead). The methods documented here are all those needed to make use of Date::HolidayParser::iCalendar.
This is the main function. It creates a new Date::HolidayParser::iCalendar object for FILE and parses the file.
FILE must be the full path to the holiday file you want to parse.
This returns an arrayRef, which contains one of three lists, depending on how many parameters are supplied:
Returns an iCalendar hash reference for the supplied UID or undef if the UID doesn't exist.
The hash returned is structured like this:
%Hash = ( ICAL_ENTRY => "ENTRY_VALUE", ANOTHER_ENTRY => "ANOTHER_VALUE", );
An example might look like this:
%Hash = ( 'SUMMARY' => 'Monday', 'UID' => 'D-HP-ICS-72-106-616', 'DTEND' => '20060313', 'DTSTART' => '20060313' );
Eskild Hustvedt - <zerodogg@cpan.org>
<zerodogg@cpan.org>
Please report any bugs or feature requests to bug-date-holidayparser@rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Date-HolidayParser. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-date-holidayparser@rt.cpan.org
Copyright (C) 2006, 2007, 2010 Eskild Hustvedt, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
To install Date::HolidayParser, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Date::HolidayParser
CPAN shell
perl -MCPAN -e shell install Date::HolidayParser
For more information on module installation, please visit the detailed CPAN module installation guide.