Login  Register

Date default constructor

Posted by Nicolas Di Césaré on Aug 27, 2001; 8:47am
URL: http://quantlib.414.s1.nabble.com/Date-default-constructor-tp1760.html

Hi all,

In the default constructor of Date, the serialNumber_ is initialized to 0.
If I am not wrong the best choice for initial value is Date::minimumSerialNumber.

I have extensivelly tested daycounter classes (and compared results with numerix) and the yearFraction member of ActualActual class only works with the correction.

Nicolas


--
Nicolas Di Césaré
http://acm.emath.fr/~dicesare