Re: Bovespa Calendar Fix

Posted by Luigi Ballabio on
URL: http://quantlib.414.s1.nabble.com/Bovespa-Calendar-Fix-tp11478p11480.html

On Tue, 2007-12-04 at 22:57 -0200, Piter Dias wrote:

> I was checking the new Bovespa calendar and realized that the following piece
> of code
>
>             // Black Consciousness Day
>             || (d == 20 && m == November && y >= 2004)
>
> should be changed to
>
>             // Black Consciousness Day
>             || (d == 20 && m == November && y >= 2007)

Ok, I'll fix it.


> There is a extra one but need to think the better way to do. The last
> business day of the year is not a Bovespa business day. That is an exchange
> rule.
> I realize that when I had a similar problem where I work.

This would probably translate to "if it's December 31st, or Friday
December 30th, or Friday December 29th". Does it sound correct?

Luigi


--

When I was a boy of fourteen, my father was so ignorant I could hardly
stand to have the old man around. But when I got to be twenty-one, I
was astonished at how much the old man had learned in seven years.
-- Mark Twain



-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev