Date::Holidays::USFederal - Determine US Federal Public Holidays
use Date::Holidays::USFederal; my ($year, $month, $day) = (localtime)[ 5, 4, 3 ]; $year += 1900; $month += 1; print "Woohoo" if is_usfed_holiday( $year, $month, $day );
The naming convention for the module follows that of L(Date::Holidays:UK) as where the format for this module was also taken.
Returns the name of the Holiday that falls on the given day, or undef if there is none.
The holidays are listed on the US Government Office of Personnel Management web site - http://www.opm.gov/Fedhol/
The module current only contains US Federal holiday information for years 1997-2025.
Doug Morris <dougmorris at mail d0t nih D0T gov >
US government. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
None known.
Bugs should be reported to me via the CPAN RT system. http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Date::Holidays::USFederal.
Date::Holidays::UK, Date::Japanese::Holiday
To install Date::Holidays::USFederal, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Date::Holidays::USFederal
CPAN shell
perl -MCPAN -e shell install Date::Holidays::USFederal
For more information on module installation, please visit the detailed CPAN module installation guide.