Initializing playground…
← Back to roadmap

Holiday Calendars

Business-day aware holiday calendars — mirrors pandas.tseries.holiday with USFederalHolidayCalendar, AbstractHolidayCalendar, Holiday, and weekday offset helpers.

1 — US Federal Holiday Calendar

USFederalHolidayCalendar provides all 11 US federal holidays with proper observance rules.

TypeScript
Click ▶ Run to execute
Ctrl+Enter to run · Tab to indent

2 — Custom Holiday Calendar

Extend AbstractHolidayCalendar with a custom list of Holiday rules and observance functions.

TypeScript
Click ▶ Run to execute
Ctrl+Enter to run · Tab to indent

3 — Floating Holidays with Weekday Offsets

Use MO(n), TH(n) etc. to define holidays that fall on the nth weekday of a month.

TypeScript
Click ▶ Run to execute
Ctrl+Enter to run · Tab to indent