[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#212399: ITP: libdate-leapyear-perl -- Simple module to determine whether or not a year is a leapyear



On Tue, 2003-09-23 at 14:46, Jochen Voss wrote:
> Hello,
> 
> On Tue, Sep 23, 2003 at 12:30:03PM -0400, Jay Bonci wrote:
> > This is a simple, non-OO module to determine whether or not a year is a leap year. It exports one 
> > function, isleap, which returns 1 or 0, which determines whether a year is leap or not
> Does it only calculate the value
> 
>     (year % 4 == 0) && ((year % 100 != 0) || (year % 400 == 0))

It's basically that, sadly.

> or does it more?
> 
> > This is a relatively simple module, but it's a distinct component necessary for 
> > libdate-ical-perl, which in turn ...
> Maybe the package could be replaced by the above line,
> folded into libdate-ical-perl?

It's something I'll check with upstream about, and phase out the package
if we can do without it. I don't know what else of his has that
dependancy. He's got a bunch of Date::* modules, so it might make sense
just to have it as an external distinct dependancy.

--jay

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: