Date::Leapyear - Is a particular year a leap year?
use Date::Leapyear; if ( isleap(1945) ) { ... }
Date::Leapyear exports one function - isleap - which returns 1 or 0 if a year is leap, or not, respectively.
$true = isleap( 2004 );
Returns 1 in a leap year, 0 otherwise.
Rich Bowen (rbowen@rcbowen.com)
To install Date::Leapyear, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Date::Leapyear
CPAN shell
perl -MCPAN -e shell install Date::Leapyear
For more information on module installation, please visit the detailed CPAN module installation guide.