NAME
Date::Holidays::CW - Curaçao's official holidays
VERSION
version 0.004
SYNOPSIS
use Date::Holidays::CW;
if (my $thing = is_holiday(2020, 10, 2, lang => 'en')) {
print "It is $thing!", $/; # prints 'Day of the country Curaçao!'
}
DESCRIPTION
A Date::Holidays family member from Curaçao
METHODS
This module implements the is_holiday
and holiday
functions from Date::Holidays::Abstract.
is_holiday(yyyy, mm, dd, %additional)
is_holiday(
'2020', '4', '30',
gov => 1, # Important for government institutions
lang => 'en' # defaults to pap, alternatively nl/nld or en/eng can be used.
);
is_holiday_dt(dt, %additional)
is_holiday_dt(
DateTime->new(
year => 2020,
month => 4,
day => 30,
time_zone => 'America/Curacao',
),
gov => 1, # Important for government institutions
lang => 'en' # defaults to pap, alternatively nl/nld or 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.
UTF-8
Be aware that we return UTF-8. Please set your enconding to UTF-8, otherwise you may see weird things.
AUTHOR
Wesley Schwengle <waterkip@cpan.org>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2024 by Wesley Schwengle.
This is free software, licensed under:
The (three-clause) BSD License