Re: isEndOfMonth

Posted by Ferdinando Ametrano-4 on
URL: http://quantlib.414.s1.nabble.com/isEndOfMonth-tp12800p12801.html

On Tue, Sep 1, 2009 at 3:45 PM, Dima<[hidden email]> wrote:
> Wouldn't it make sense to add [to isEndOfMonth]:
> if(!isBusinessDay(d)) return false

no, it doesn't, at least not in general.
E.g. bond maturity date being on a non-business end-of-month day, you
might want all other dates to be end-of-month

> If I ask for a holiday, such as the 31st of December for the Frankfurt Stock
> Exchange
> and ask the function if the day isEndOfMonth, I receive true

so it would up to you to verify both isEndOfMonth and isBusinessDay

ciao -- Nando

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev