Re: Evaluation date

Posted by Nicolas Di Césaré on
URL: http://quantlib.414.s1.nabble.com/Evaluation-date-tp10636p10638.html

Le lun 30/08/2004 à 18:51, Ferdinando Ametrano a écrit :

> Hi Luigi
>
> >I'd create some kind of singleton Settings class through which
> >the global evaluation date can be set and retrieved, as in
> >
> >Settings::instance().evaluationDate() = Date(30,August,2004);
> >Date d = Settings::instance().evaluationDate()
> >
> >The stored date would be used whenever one needs to know what day it's
> >supposed to be, and the actual today's date would be returned if none
> >was set.
> I agree

I am also agree.

--
Nicolas Di Césaré <[hidden email]>