quantlib.time.calendar.Calendar.advance

Calendar.advance(self, Date given_date, int step=0, int units=-1, Period period=None, int convention=Following, end_of_month=False)

Advances the given date by the given number of business days or period.

Parameters:
given_dateDate

The date to advance.

stepint, optional

The number of steps to advance.

unitsint, optional

The time unit for the step.

periodPeriod, optional

The period to advance the date by.

conventionint, optional

The business day convention to use.

end_of_monthbool, optional

Whether to preserve the end-of-month status.