Extending scope QuantLib Years

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Extending scope QuantLib Years

Jeroen_Decuypere

Hi,

The QuantLib-years scope is between 1900-2100. In order to know all the holidays like Easter, I assume?
Is there however a nice way to make the QuantLib- date (1,QuantLib::January,2112) ?


For now, I added yearOffset[] in date.cpp with 20 more integers, and changed the QL-criteria till 2120.
I also did expand the arrays SpringFestival[] en EasterMonday in china.cpp and calendar.cpp.
The exact dates of those hols are not that important (for me).

I was wondering if there existed already such an scope-expansion?


Greets,
Jeroen Decuypere

********************************DISCLAIMER*******************************
Deze e-mail en alle daarbij meegezonden bijlagen zijn uitsluitend bestemd voor de geadresseerde(n). Verstrekking aan en gebruik door anderen is niet toegestaan. Delta Lloyd N.V. (KvK Amsterdam 33121461 0000) en haar dochtermaatschappijen sluiten iedere aansprakelijkheid uit die voortvloeit uit elektronische verzending.

This e-mail and any attachment sent with it are intended exclusively for the addressee(s), and may not be passed on to, or made available for use by any person other than the addressee(s). Delta Lloyd N.V. (KvK Amsterdam 33121461 0000) and its subsidiaries rule out any and every liability resulting from any electronic transmission. **************************************************************************

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users

Reply | Threaded
Open this post in threaded view
|

Re: Extending scope QuantLib Years

Luigi Ballabio
On Thu, 2007-04-26 at 10:15 +0200, [hidden email] wrote:
> The QuantLib-years scope is between 1900-2100. In order to know all
> the holidays like Easter, I assume?

Yes.

> I was wondering if there existed already such an scope-expansion?

No. But if you have the data for 2100 onwards, I'll be happy to add them
to the existing ones.

Later,
        Luigi


----------------------------------------

Hofstadter's Law:
It always takes longer than you expect, even when you take
Hofstadter's Law into account.



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users