holidays
holidays, function
def table holidays(start: date, end: date, zone: text): table
Creates a table of bank holidays between start and end for the country code
zone. The resulting table has two columns: Day (date) and HolidayName
(text).
start: first date included in the holiday range.end: last date included in the holiday range.zone: country code, such as"FR".
Example
table H = holidays(date(2024, 1, 1), date(2024, 1, 1), "DE")
show table "Holidays" with
H.Day
H.HolidayName
This outputs the following table:
| Day | HolidayName |
|---|---|
| 2024-01-01 | Neujahrstag |
Remarks
Supported zone values are FR, ES, and DE.
Dates cannot go beyond the run year plus one.
Errors
The function fails when start, end, or zone are not scalar values.
The function fails when end is before start.
The function fails when start or end is too far in the future.
The function fails when zone is not recognized.