Date::Holidays::DK - Determine Danish public holidays
use Date::Holidays::DK; my ($year, $month, $day) = (localtime)[ 5, 4, 3 ]; $year += 1900; $month += 1; print "Woohoo" if is_dk_holiday( $year, $month, $day );
Determines whether a given date is a Danish public holiday or not.
This module employs the simple API of Date::Holidays::UK, but implements a generalised detection mechanism, that will work for all years since 1700, when Denmark adopted the Gregorian calendar.
Returns the name of the Holiday that falls on the given day, or undef if there is none.
Exports is_dk_holiday() by default.
Please report issues via CPAN RT:
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Date-Holidays-DK
or by sending mail to
bug-Date-Holidays-DK@rt.cpan.org
Lars Thegler <lars@thegler.dk>
Copyright (c) 2004 Lars Thegler. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Date::Holidays::DK, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Date::Holidays::DK
CPAN shell
perl -MCPAN -e shell install Date::Holidays::DK
For more information on module installation, please visit the detailed CPAN module installation guide.