DESCRIPTION
A Date::Holidays family member from the Netherlands
SYNOPSIS
use Date::Holidays::NL;
if (my $thing = is_holiday(2020, 5, 5, lang => 'en')) {
print "It is $thing!", $/; # prints liberation day
}
METHODS
This module implements the is_holiday and holiday functions from
Date::Holidays::Abstract.
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(
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.