- Holiday Data
- SEE ALSO
Date::Holidays::UK - Determine UK Public Holidays
use Date::Holidays::UK; my ($year, $month, $day) = (localtime)[ 5, 4, 3 ]; $year += 1900; $month += 1; print "Woohoo" if is_uk_holiday( $year, $month, $day );
Naming modules is a tricky thing, especially when similar modules already exist. The awkwardness can be further excaberated when the similar modules don't have consistent apis.
In this case we started by contrasting Date::Japanese::Holiday and Date::Holidays::DE. We've crossed the streams by taking the simple is_*_holiday interface from Date::Japanese::Holiday, and taken the Date::Holidays::<country> convention from Date::Holidays::DE. We hope nothing explodes.
Returns the name of the Holiday that falls on the given day, or undef if there is none.
The DTI's webpage http://www.dti.gov.uk/er/bankhol.htm is taken as the canonical source for bank holidays.
We only currently contain the DTI bank holiday detail, which at the time of writing only covers the years 2004-2007.
Richard Clamp <firstname.lastname@example.org>, Amelie Guyot, Jerome Parfant.
Copyright 2004 Fotango. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Bugs should be reported to me via the CPAN RT system. http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Date::Holidays::UK.