Construct a holiday calendar.
The calendar name.
An array of weekdays which are always holidays.
An array of dates which are holidays.
Get the calendar name.
Check if the date is a holiday.
Check if the date is a weekend.
True is the date is a weekend, otherwise false.
Generated using TypeDoc
A calendar class which supports weekends and an array of arbitrary dates.
The following constructs a holiday calendar for the US in 2020.