Date::Leapyear(3pm)
β¨ NAME β¨
Date::Leapyear β bestie, it answers the one question everyone asks at 2am: is this year a leap year or not?? π¦
πΈ SYNOPSIS πΈ
use Date::Leapyear;
if ( isleap(1945) ) {
...
}
literally that's it. that's the whole vibe. π
π DESCRIPTION π
okay so Date::Leapyear exports exactly one function β it's called isleap β and what it does is return 1 or 0 depending on whether the year you handed it is a leap year or not. respectively. β¨
one function. one job. main character energy fr fr. π
π isleap π
$true = isleap( 2004 );
Returns 1 in a leap year, 0 otherwise. π
no cap, that's the whole API. you give it a year, it tells you the truth. π«Ά
π AUTHOR π
Rich Bowen (rbowen@rcbowen.com) β icon, legend, the moment. π
ngl bestie, that's a wrap on the whole page. no warnings, no bugs section, no SEE ALSO β just pure, unbothered, leap-year-detecting excellence. π
this lil masterpiece shipped with perl v5.34.0 and got its timestamp on 2022-06-13, filed under Date::Leapyear(3pm) in the User Contributed Perl Documentation corner of the world π mwah, bye bestie π π
π¦ where this page comes from
- debian bookworm: libdate-leapyear-perl 1.72-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libdate-leapyear-perl 1.72-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libdate-leapyear-perl 1.72-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libdate-leapyear-perl 1.72-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libdate-leapyear-perl 1.72-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms