add_calendar
The add_calendar method adds a new business calendar to the set of available options.
Syntax
Parameters
| Parameter | Type | Description |
|---|---|---|
| cal | Union[BusinessCalendar, str] | A |
Returns
None.
Example
The following code block adds a new business calendar, TestCalendar_2024.calendar, to the set of available business calendars. This calendar can be found in the examples repository.
Business calendar files should be formatted as: