Date::Holidays::USFederal - Determine US Federal Public Holidays


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

Index


NAME

Top

Date::Holidays::USFederal - Determine US Federal Public Holidays

SYNOPSIS

Top

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

DESCRIPTION

Top

The naming convention for the module follows that of L(Date::Holidays:UK) as where the format for this module was also taken.

SUBROUTINES

Top

is_usfed_holiday( $year, $month, $day )

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

CAVEATS

Top

The module current only contains US Federal holiday information for years 1997-2010.

AUTHOR

Top

Doug Morris <dougmorris at mail d0t nih D0T gov >

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::USFederal.

SEE ALSO

Top

Date::Holidays::UK, Date::Japanese::Holiday


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