Date::Holidays::NL - The Netherlands official holidays
version 0.007
use Date::Holidays::NL; if (my $thing = is_holiday(2020, 5, 5, lang => 'en')) { print "It is $thing!", $/; # prints 'It is Liberation day!' }
A Date::Holidays family member from the Netherlands
This module implements the is_holiday, is_holiday_dt and holiday functions from Date::Holidays::Abstract.
is_holiday
is_holiday_dt
holiday
All methods accept additional parameters. The most important is a flag called gov, when supplied you will get days that the government considers special in regards to service terms. It essentially says that if a company or government needs to contact you before or on that day it can be expedited to the following work day. See the relevant law for more information.
gov
is_holiday( '2022', '05', '05', gov => 1, # Important for government institutions lang => 'en' # defaults to nl/nld, alternatively en/eng can be used. );
is_holiday_dt( DateTime->new( year => 2022, month => 5, day => 5, time_zone => 'Europe/Amsterdam', ), gov => 1, # Important for government institutions lang => 'en' # defaults to nl/nld, alternatively en/eng can be used. );
holidays('2022', gov => 1);
Similar API to the other functions, returns an hashref for the year.
Wesley Schwengle <waterkip@cpan.org>
This software is Copyright (c) 2020 by Wesley Schwengle.
This is free software, licensed under:
The (three-clause) BSD License
To install Date::Holidays::NL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Date::Holidays::NL
CPAN shell
perl -MCPAN -e shell install Date::Holidays::NL
For more information on module installation, please visit the detailed CPAN module installation guide.