Date::Holidays::UK - Determine UK Public Holidays


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

Index


NAME

Top

Date::Holidays::UK - Determine UK Public Holidays

SYNOPSIS

Top

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

DESCRIPTION

Top

Naming modules is a tricky thing, especially when similar modules already exist. The awkwardness can be further excaberated when the similar modules don't have consistent apis.

In this case we started by contrasting Date::Japanese::Holiday and Date::Holidays::DE. We've crossed the streams by taking the simple is_*_holiday interface from Date::Japanese::Holiday, and taken the Date::Holidays::<country> convention from Date::Holidays::DE. We hope nothing explodes.

SUBROUTINES

Top

is_uk_holiday( $year, $month, $day )

Returns the name of the Holiday that falls on the given day, or undef if there is none.

CAVEATS

Top

We only currently contain the DTI bank holiday detail, which at the time of writing only covers the years 2004-2007.

AUTHOR

Top

Richard Clamp <richardc@fotango.com>, Amelie Guyot, Jerome Parfant.

COPYRIGHT

Top

BUGS

Top

None known.

Bugs should be reported to me via the CPAN RT system. http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Date::Holidays::UK.

SEE ALSO

Top

Date::Holidays::DE, Date::Japanese::Holiday


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