NAME
Date::Holidays::NL - The Netherlands official holidays
VERSION
version 0.008
SYNOPSIS
use Date::Holidays::NL;
if (my $thing = is_holiday(2020, 5, 5, lang => 'en')) {
print "It is $thing!", $/; # prints 'It is Liberation day!'
}
DESCRIPTION
A Date::Holidays family member from the Netherlands
METHODS
This module implements the is_holiday
, is_holiday_dt
and holiday
functions from Date::Holidays::Abstract.
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.
is_holiday(yyyy, mm, dd, %additional)
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(dt, %additional)
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(yyyy, gov => 1)
holidays('2022', gov => 1);
Similar API to the other functions, returns an hashref for the year.
SEE ALSO
AUTHOR
Wesley Schwengle <waterkip@cpan.org>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2020 by Wesley Schwengle.
This is free software, licensed under:
The (three-clause) BSD License