On 3 Jun 2001, Rich Bowen wrote:

> I got tired of putting a leap year function in every Date:: module I'm working
> on, and did not want to load something as huge as Date::Manip to get this
> functionality, so you should now have Date::Leapyear on your favorite CPAN
> mirror. Date::Leapyear exports a single function, isleap, which takes a year as
> an argument, and returns 1 if it isleap, and 0 if it is not.

I also just noticed that Time::DaysInMonth does this. The name did
not immediately suggest this to me, but I suppose perhaps it should
have. The only month that is ever going to have an "unexpected" result
would be February.

-- 
Rich Bowen <[EMAIL PROTECTED]>
http://www.rcbowen.com/

Reply via email to