0
$\begingroup$

Is there an easy way to add weekends to a BespokeCalendar calendar instance?

$\endgroup$
1
  • $\begingroup$ this is in python by the way $\endgroup$
    – vman
    Commented Sep 27, 2022 at 1:53

1 Answer 1

2
$\begingroup$
o = ql.BespokeCalendar("mynewcalendar")
o.addWeekend(ql.Saturday)
o.addWeekend(ql.Sunday)
$\endgroup$
1
  • $\begingroup$ thank you very much! $\endgroup$
    – vman
    Commented Sep 27, 2022 at 10:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.