Date::Leapyear - Is a particular year a leap year?


Date-Leapyear documentation  | view source Contained in the Date-Leapyear distribution.

Index


NAME

Top

Date::Leapyear - Is a particular year a leap year?

SYNOPSIS

Top

  use Date::Leapyear;
  if ( isleap(1945) ) {
    ...
  }

DESCRIPTION

Top

Date::Leapyear exports one function - isleap - which returns 1 or 0 if a year is leap, or not, respectively.

isleap

Top

    $true = isleap( 2004 );

Returns 1 in a leap year, 0 otherwise.

AUTHOR

Top

Rich Bowen (rbowen@rcbowen.com)


Date-Leapyear documentation  | view source Contained in the Date-Leapyear distribution.