Posted by
Luigi Ballabio on
URL: http://quantlib.414.s1.nabble.com/Calendar-with-custom-set-holidays-and-name-tp53p54.html
On Fri, 2010-12-17 at 18:43 +0100, Henner Heck wrote:
> i am trying to create a Calendar in QuantLib 1.0.1 which contains
> no holidays except the weekends and has a name provided by
> me after finishing with the constructor.
> When i have this "plain" calendar, i assume i can add holidays
> with "void addHoliday(const Date&);". In the end i want to have
> a calendar, which replies "true" on "isBusinessDay(const Date&)"
> only on weekends and on the dates which i previously added.
Look in <ql/time/calendars/bespokecalendar.hpp>.
Luigi
--
A little inaccuracy sometimes saves tons of explanation.
-- H.H. Munro, "Saki"
------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users