DateTime::Event::Holiday::US
version 0.02
# This module handles creating a DateTime::Set::ICal object (see # DateTime::Event::Recurrence) that you can use as a US holiday.
use DateTime::Event::Holiday::US; my $thanksgiving = DateTime::Event::Holiday::US::holiday( 'Thanksgiving' ); my @holidays = DateTime::Event::Holiday::US::known();
# $thanksgiving will be a DateTime::Set::ICal object that you can perform # anything you would do with a DateTime::Set object.
# $holidays will be an array of all holiday names DateTime::Event::Holiday::US # knows about.
DateTime::Event::Holiday::US - US Holiday's as DateTime::Set objects
Version 0.02
Nothing is exported.
Returns a list of holiday names DateTime::Event::Holiday::US knows about.
@known = DateTime::Event::Holiday::US::known();
Returns the requested holiday as a DateTime::Set::ICal object.
$thanksgiving = DateTime::Event::Holiday::US::holiday( 'Thanksgiving' );
$thanksgiving will be a DateTime::Set::ICal object that you can perform anything you would do with a DateTime::Set object.
Returns a hash reference of DateTime::Set::ICal objects for each holiday.
$holidays = DateTime::Event::Holiday::US::holidays( 'Thanksgiving', 'Black Friday' );
$holidays is a hash reference where the key is the name of the holiday and the value is the object.
Returns requested holidays as a single DateTime::Set object;
$holidays = DateTime::Event::Holiday::US::holidays_as_set( 'Thanksgiving', 'Black Friday' );
$holidays would be a DateTime::Set containing sets for both Thanksgiving and Black Friday
Alan Young, <alansyoungiii at gmail.com>
Please report any bugs or feature requests to bug-datetime-event-holiday-us at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=DateTime-Event-Holiday-US. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
You can find documentation for this module with the perldoc command.
perldoc DateTime::Event::Holiday::US
You can also look for information at:
http://rt.cpan.org/NoAuth/Bugs.html?Dist=DateTime-Event-Holiday-US
Copyright 2010 Alan Young.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
See perlmodinstall for information and options on installing Perl modules.
Alan Young <harleypig@gmail.com>
This software is copyright (c) 2010 by Alan Young.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.