[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



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))

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?

Jochen

Attachment: signature.asc
Description: Digital signature


Reply to: