calendar

The calendar method returns the calendar with the given name. If no name is given, the default calendar is returned. To set the default calendar, use set_calendar.

Syntax

Parameters

ParameterTypeDescription
namestr

The name of the calendar. If not specified, the default calendar is returned.

Returns

A BusinessCalendar. Note that the returned type is an io.deephaven.time.calendar.BusinessCalendar Java object that can be used in Python.

Examples

The following example gets the default calendar.

The following example gets the USBANK_EXAMPLE calendar.

The following example uses the USNYSE_EXAMPLE calendar in a table operation to see if given dates are business days or not.