Date::Leapyear(3pm)

πŸ“¦
version 1.72 Β· 4 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ 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