NAME

Date::Holidays::BQ - Bonaire's official holidays

VERSION

version 0.003

SYNOPSIS

use Date::Holidays::BQ;

if (my $thing = is_holiday(2020, 4, 30, lang => 'en')) {
    print "It is $thing!", $/; # prints 'It is Bonaire Flag day!'
}

DESCRIPTION

A Date::Holidays family member from Bonaire

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 when Papiamento is chosen. So make sure you set your enconding to UTF-8, otherwise you may see weird things.

SEE ALSO

https://wetten.overheid.nl/BWBR0002448/2010-10-10

AUTHOR

Wesley Schwengle <waterkip@cpan.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2022 by Wesley Schwengle.

This is free software, licensed under:

The (three-clause) BSD License