add_calendar

The add_calendar method adds a new business calendar to the set of available options.

Syntax

Parameters

ParameterTypeDescription
calUnion[BusinessCalendar, str]

A BusinessCalendar or path to a business calendar file. Supported file format is XML. See here for an example of a calendar XML file, and here for more information on calendar XML file format.

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: