Login  Register

Bug : date.h

Posted by Gilbert Peffer on Dec 21, 2000; 10:11am
URL: http://quantlib.414.s1.nabble.com/Bug-date-h-tp1637.html

Hi,
There is a bug in the date::isLeap member function. The impact though is
minimal:

A year is a leap year if it is dividable by 4, EXCEPT if it is dividable by
100. Additionally, if it is dividable by 400, it is a leap year again.

Thus 1900 and 2100 are not leap years.

Although this won't possibly have an impact on any calculation, they are
things people (users) love to check out.

Gilbert