The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Date::Holidays::AW - Aruba's official holidays

VERSION

version 0.006

SYNOPSIS

use Date::Holidays::AW;

if (my $thing = is_holiday(2020, 3, 18, lang => 'en')) {
    print "It is $thing!", $/; # prints 'It is Betico day!'
}

DESCRIPTION

A Date::Holidays family member from Aruba

METHODS

This module implements the is_holiday and holiday functions from Date::Holidays::Abstract.

is_holiday(yyyy, mm, dd, %additional)

is_holiday(
    '2020', '3', '18',
    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     => 3,
        day       => 18,
        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.

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