The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Date::Holidays::PF - Determine French Polynesia holidays

SYNOPSIS

  use Date::Holidays::PF;
  for my $year (2017 .. 2027) {
        print $year,"\n";
        my @JF = ((1,1),(3,5),get_vendredisaint($year),get_lundipaques($year),(5,1),(5,8),get_ascension($year),get_pentecost($year),(6,29),(7,14),(8,15),(11,1),(11,11),(12,25));
        use List::Util qw( pairs );
        foreach my $pair ( pairs @JF) {
                my ($month, $day)= @$pair;
                print "$year,$month,$day ", is_pf_holiday($year,$month,$day),"\n";
        }
  }

DESCRIPTION

is_pf_holiday method return true value when the day is holiday.

There is 14 holidays in French Polynesia.

  • 1er janvier : Nouvel an

  • 3 mars : arrivée de l'évangile

  • vendredi saint

  • Lundi de Pâques

  • 1er mai : Fête du travail

  • 8 mai : Armistice 39-45

  • Ascension

  • Lundi de Pentecôte

  • 29 juin : fête de l'autonomie

  • 14 juillet : Fête nationale

  • 15 août : Assomption

  • 1er novembre : Toussaint

  • 11 novembre : Armistice 14-18

  • 25 décembre : Noël

Easter is computed with Date::Easter module.

Vendredi saint is 2 days before easter

Ascension is 39 days after easter.

Pentecost is 50 days after easter.

SUBROUTINES

is_pf_holiday($year, $month, $day)

Returns the name of the holiday in french polynesia that falls on the given day, or undef if there is none.

get_easter($year)

Returns the month and day of easter day for the given year.

get_vendredisaint($year)

Returns the month and day of vendredi saint day for the given year.

get_ascension($year)

Returns the month and day of ascension day for the given year.

get_pentecost($year)

Returns the month and day of pentecost day for the given year.

REQUESTS & BUGS

Please report any requests, suggestions or bugs via the RT bug-tracking system at http://rt.cpan.org/ or email to bug-Date-Holidays-PF\@rt.cpan.org.

http://rt.cpan.org/NoAuth/Bugs.html?Dist=Date-Holidays-PF is the RT queue for Date::Holidays::PF. Please check to see if your bug has already been reported.

COPYRIGHT

Copyright 2017

Dominix dominix@cpan.org based on Date::Holidays::FR by Fabien Potencier, fabpot@cpan.org

This software may be freely copied and distributed under the same terms and conditions as Perl.

SEE ALSO

perl(1), Date::Holidays::UK, Date::Holidays::FR.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 110:

Non-ASCII character seen before =encoding in 'arrivée'. Assuming UTF-8