set_calendar

The set_calendar method sets the default calendar. The default calendar can also be set with the Calendar.default configuration property.

Syntax

Parameters

ParameterTypeDescription
namestr

The name of the calendar.

Returns

None.

Examples

The following example sets the default calendar to USNYSE_EXAMPLE.

The default calendar can also be set via the Calendar.default configuration property. The following docker-compose.yml file adds this configuration property to Deephaven's base Python YAML file:

For pip-installed Deephaven, the equivalent is as follows: