Holiday calendars
Which days are working days, for counting business days and for the weekend and holiday marks
on a result. 3 calendars come with the program.
What a calendar does
A calendar knows the weekend and the public holidays of one place. With one picked, the
calculator can:
- count business days:
--shift +5bd skips weekends and holidays,
- move to the nearest business day with
--nearest nbd or pbd,
- say of the result whether it is a business day, and which holiday it is.
In the window, pick one in the Calendar field of the Calculator. On the command
line it is chrono calc --calendar with the name to type. A
scenario made for one market counts in that market's calendar by
itself. A session uses a calendar only to work out the date it starts at, from a scenario that
counts business days.
chrono calc --base 2026-12-22T09:00:00 --shift +3bd --calendar pl
Chrono Mock - date calculator
base: 2026-12-22T09:00:00
step 1: shift +3 business_days -> 2026-12-29T09:00:00
result: 2026-12-29T09:00:00
...
business day yes (pl)
holiday no
Three business days from Tuesday 22 December end on the 29th: in Poland Christmas Eve, both days
of Christmas and the weekend between them are off.
The years a calendar covers
Holidays change: a law adds one, another moves. So each calendar says from which year it is
sure, and on which day its holidays were last checked against the law.
- Before its first year a business-day step is refused with a message, and a
date there is shown as not judged rather than as a working day.
- After the day it was checked the calendar goes on with the law of that day.
Once that day is more than a year ago, a result after it is marked as possibly out of date,
because a holiday may have been added since.
A holiday on a weekend
Some places give a day off in place of a holiday that falls on a Saturday or a Sunday, and each
calendar below says which day that is. When that day is off already, the day off moves on to the
next working day in the same direction.
The calendars
chrono calendars lists the same ones, with any you add. Each holiday is listed with
the years it applies in, within the years the calendar covers.
Poland#Polska
- Name to type
pl
- Years
- From 2002
- Checked against the law on
- 28 October 2026
- Weekend
- Saturday and Sunday
- A holiday on a weekend
- Stays on that day, and no other day is marked off in its place.
| Holiday | Date | Years |
| New Year's DayNowy Rok | 1 January | Every year |
| EpiphanyŚwięto Trzech Króli | 6 January | Since 2011 |
| Easter SundayNiedziela Wielkanocna | Easter Sunday | Every year |
| Easter MondayPoniedziałek Wielkanocny | The day after Easter Sunday | Every year |
| May Day (Labour Day)Święto Pracy | 1 May | Every year |
| Constitution DayŚwięto Konstytucji 3 Maja | 3 May | Every year |
| Pentecost (Whit Sunday)Zielone Świątki | 49 days after Easter Sunday | Every year |
| Corpus ChristiBoże Ciało | 60 days after Easter Sunday | Every year |
| Assumption of the Blessed Virgin Mary / Polish Armed Forces DayWniebowzięcie Najświętszej Maryi Panny / Święto Wojska Polskiego | 15 August | Every year |
| All Saints' DayWszystkich Świętych | 1 November | Every year |
| National Independence DayNarodowe Święto Niepodległości | 11 November | Every year |
| National Holiday of the Centenary of Regained IndependenceŚwięto Narodowe z okazji Setnej Rocznicy Odzyskania Niepodległości | 12 November | Only in 2018 |
| Christmas EveWigilia Bożego Narodzenia | 24 December | Since 2025 |
| Christmas DayBoże Narodzenie (pierwszy dzień) | 25 December | Every year |
| Second Day of ChristmasDrugi dzień Bożego Narodzenia | 26 December | Every year |
Sources: Range from 2002, the first full year of the five-day working week of the Labour Code (art. 129 as amended by the Act of 1 March 2001, Dz.U. 2001 nr 28 poz. 301, in force 2001-05-01), with Saturday and Sunday as the weekend by the common practice of that week. Before it Saturday was a working day apart from days set aside year by year, which this calendar does not hold. Holidays: the Non-working Days Act of 18 January 1951 (Dz.U. 1951 nr 4 poz. 28) as amended, and the Act of 7 November 2018. Not in it: days off given only to government offices, and a day off a regulation may name under art. 1a of the 1951 Act during an epidemic
United States - banking (Federal Reserve)#
- Name to type
us-banking
- Years
- From 2008
- Checked against the law on
- 28 October 2026
- Weekend
- Saturday and Sunday
- A holiday on a weekend
- On a Sunday the Monday after is off. On a Saturday it stays on that day.
| Holiday | Date | Years |
| New Year's Day | 1 January | Every year |
| Birthday of Martin Luther King, Jr. | Third Monday of January | Every year |
| Washington's Birthday | Third Monday of February | Every year |
| Memorial Day | Last Monday of May | Every year |
| Juneteenth National Independence Day | 19 June | Since 2021 |
| Independence Day | 4 July | Every year |
| Labor Day | First Monday of September | Every year |
| Columbus Day | Second Monday of October | Every year |
| Veterans Day | 11 November | Every year |
| Thanksgiving Day | Fourth Thursday of November | Every year |
| Christmas Day | 25 December | Every year |
Sources: Range from 2008, the oldest Federal Reserve holiday schedule read (K.8, Holidays Observed by the Federal Reserve 2008-2012, the copy of 9 July 2008 kept by the Internet Archive). It states the rule K.8 still states for 2026-2030: for holidays falling on Saturday Federal Reserve Banks and Branches are open the preceding Friday, for holidays falling on Sunday all Federal Reserve offices are closed the following Monday. Not in it: days only the Board of Governors closes
United States - federal#
- Name to type
us-federal
- Years
- From 1960
- Checked against the law on
- 28 October 2026
- Weekend
- Saturday and Sunday
- A holiday on a weekend
- On a Saturday the Friday before is off, on a Sunday the Monday after.
| Holiday | Date | Years |
| New Year's Day | 1 January | Every year |
| Birthday of Martin Luther King, Jr. | Third Monday of January | Since 1986 |
| Washington's Birthday | Third Monday of February | Since 1971 |
| Washington's Birthday | 22 February | Until 1970 |
| Memorial Day | Last Monday of May | Since 1971 |
| Memorial Day | 30 May | Until 1970 |
| Juneteenth National Independence Day | 19 June | Since 2021 |
| Independence Day | 4 July | Every year |
| Labor Day | First Monday of September | Every year |
| Columbus Day | Second Monday of October | Since 1971 |
| Veterans Day | 11 November | Since 1978 |
| Veterans Day | Fourth Monday of October | 1971 to 1977 |
| Veterans Day | 11 November | Until 1970 |
| Thanksgiving Day | Fourth Thursday of November | Every year |
| Christmas Day | 25 December | Every year |
Sources: Range from 1960, the first full year of both observance rules: a holiday on Saturday is observed on the preceding Friday by employees whose basic workweek is Monday through Friday from Public Law 86-362 of 22 September 1959 (5 U.S.C. 6103(b)), and a holiday on Sunday on the following Monday from Executive Order 10358 of 9 June 1952 (Executive Order 11582 from 1971). Holidays: the legal public holidays of 5 U.S.C. 6103(a) and the laws it derives from (United States Code, 2024 edition, with its historical notes). Not in it: Inauguration Day, a holiday only around Washington, and days off given by executive order
Your own calendar
A calendar holds every day off of its place by itself: it cannot add to another one. To count
your company's own days off too, copy the calendar of your country and add them to the copy.
- Copy
pl.json from the folder chrono calendars names on its second
line, for example to pl-office.json, and set id in it to
pl-office. The file name without .json must be the same as
id.
- Add each day to
holidays, shaped like the one below, with a source
that says where it comes from. A holiday without a source is refused, because people count
payment dates from these files.
- Run
chrono calendars again. Your calendar is in the list, or among the files
left out, with the reason. From then on --calendar pl-office counts with it.
{
"id": "company_day",
"name": { "en": "Company day", "local": "Dzień firmy" },
"rule": { "type": "fixed", "month": 6, "day": 2 },
"valid_from": 2027,
"valid_to": null,
"source": "Staff handbook, 2027 edition"
}
What the file holds
| Key | What it is |
schema | Always chronomock.calendar/1. |
id | The name to type, the same as the file name. |
country, subregion | The country in two letters, such as
PL, and null. |
name | en, and local in the place's own
language. |
weekend | The days off every week, such as
["saturday", "sunday"]. |
observed | Which day is off for a holiday on a weekend:
none, sat_to_fri_sun_to_mon, sun_to_mon or
weekend_to_mon. Anything but none needs a Saturday and Sunday
weekend. |
valid_from | The first year everything in the calendar has a source
for: the holidays, the weekend and the rule for weekends. |
law_as_of | The day the holidays were checked against the law, written
YYYY-MM-DD. |
source | Where the first year, the weekend and the rule for weekends
come from. |
holidays | Each with an id, a name, the
rule for its date, the years valid_from and valid_to
(null for no limit) and its own source. |
A key the program does not know is refused with its name, so a typo cannot drop a holiday
without a word.
The date of a holiday
rule | The day |
{ "type": "fixed", "month": 11, "day": 11 } | The same
date every year: 11 November. |
{ "type": "nth_weekday", "month": 1, "weekday": "monday", "order": 3 } | The
third Monday of January. order is 1 to 5, or -1 for the last one of
the month. |
{ "type": "easter_offset", "offset": 60 } | 60 days after
Easter Sunday. 0 is Easter Sunday itself, and a minus counts back. From
-80 to 250, which keeps the day in the year of its Easter. |