HolidayCalendar

HolidayCalendar

is an option that specifies the holiday calendar schedule in business day functions.

Details

  • HolidayCalendar is {"UnitedStates","Default"} by default.
  • HolidayCalendar can be set to either one of the prebuilt calendars contained in the CalendarData paclet, or to a custom calendar by specifying a set of holiday schedules.
  • The basic unit of a holiday schedule is a holiday criterion, a three-element list of tests in the form of pure functions that are to be applied to the year, month, and day of a given calendar, respectively. A date is a holiday if all three tests return true when applied to it.
  • A separate set of tests must be specified for each calendar system in which holidays are celebrated.
  • Available calendar systems are:
  • "Gregorian"Gregorian solar calendar
    "Julian"Julian solar calendar
    "Jewish"Jewish lunisolar calendar
    "Islamic"Islamic lunar calendar (based on Mecca lunations)
    "Ecclesiastical"calendar for moveable feasts in the Roman Catholic liturgy
    "EcclesiasticalOrthodox"calendar for moveable feasts in the Greek Orthodox liturgy
    "Equinox"calendar for holidays associated with sidereal motion
    "ChineseLunar"Chinese lunisolar calendar
    "HinduLunar"Hindu lunisolar calendar

Examples

open allclose all

Basic Examples  (2)

Specify a prebuilt holiday schedule other than the default:

In[1]:=
Click for copyable input
Out[1]=

Specify a prebuilt holiday schedule other than the default:

In[1]:=
Click for copyable input
Out[1]=

Scope  (2)

Applications  (1)

See Also

CalendarType  DayMatchQ  CalendarData

Introduced in 2012
(9.0)