Date::Holidays::FR - Determine French holidays


Date-Holidays-FR documentation  | view source Contained in the Date-Holidays-FR distribution.

Index


NAME

Top

Date::Holidays::FR - Determine French holidays

SYNOPSIS

Top

  use Date::Holidays::FR;
  my ($year, $month, $day) = (localtime)[5, 4, 3];
  $year  += 1900;
  $month += 1;
  print "Woohoo" if is_fr_holiday($year, $month, $day);

  my ($month, $day) = get_easter($year);
  my ($month, $day) = get_ascension($year);
  my ($month, $day) = get_pentecost($year);

DESCRIPTION

Top

is_fr_holiday method return true value when the day is holiday.

There is 11 holidays in France:

* 1er janvier : Nouvel an
* Lundi de Pâques
* 1er mai : Fête du travail
* 8 mai : Armistice 39-45
* Ascension
* Pentecôte
* 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.

Ascension is 39 days after easter.

Pentecost is 50 days after easter.

SUBROUTINES

Top

is_fr_holiday($year, $month, $day)

Returns the name of the holiday in french 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_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

Top

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

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

COPYRIGHT

Top

SEE ALSO

Top

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


Date-Holidays-FR documentation  | view source Contained in the Date-Holidays-FR distribution.