16 Mar 2004 15:40:39 UTC
- Distribution: Date-Holidays-UK
- Module version: 0.01
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (2)
- Testers (944 / 0 / 1)
- KwaliteeBus factor: 0
- 100.00% Coverage
- License: perl_5
- Perl: v5.6.0
- Activity24 month
- Download (2.68KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version++ed by:RCLAMP Richard Clampand 1 contributors
- Richard Clamp, Amelie Guyot, Jerome Parfant.
- 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 <email@example.com>, 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.
Module Install Instructions
To install Date::Holidays::UK, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Date::Holidays::UK
For more information on module installation, please visit the detailed CPAN module installation guide.