Chrono Mock
LanguageEnglish
Documentation Holiday calendars

The window

Scenarios and calendars

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.
HolidayDateYears
New Year's DayNowy Rok1 JanuaryEvery year
EpiphanyŚwięto Trzech Króli6 JanuarySince 2011
Easter SundayNiedziela WielkanocnaEaster SundayEvery year
Easter MondayPoniedziałek WielkanocnyThe day after Easter SundayEvery year
May Day (Labour Day)Święto Pracy1 MayEvery year
Constitution DayŚwięto Konstytucji 3 Maja3 MayEvery year
Pentecost (Whit Sunday)Zielone Świątki49 days after Easter SundayEvery year
Corpus ChristiBoże Ciało60 days after Easter SundayEvery year
Assumption of the Blessed Virgin Mary / Polish Armed Forces DayWniebowzięcie Najświętszej Maryi Panny / Święto Wojska Polskiego15 AugustEvery year
All Saints' DayWszystkich Świętych1 NovemberEvery year
National Independence DayNarodowe Święto Niepodległości11 NovemberEvery year
National Holiday of the Centenary of Regained IndependenceŚwięto Narodowe z okazji Setnej Rocznicy Odzyskania Niepodległości12 NovemberOnly in 2018
Christmas EveWigilia Bożego Narodzenia24 DecemberSince 2025
Christmas DayBoże Narodzenie (pierwszy dzień)25 DecemberEvery year
Second Day of ChristmasDrugi dzień Bożego Narodzenia26 DecemberEvery 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.
HolidayDateYears
New Year's Day1 JanuaryEvery year
Birthday of Martin Luther King, Jr.Third Monday of JanuaryEvery year
Washington's BirthdayThird Monday of FebruaryEvery year
Memorial DayLast Monday of MayEvery year
Juneteenth National Independence Day19 JuneSince 2021
Independence Day4 JulyEvery year
Labor DayFirst Monday of SeptemberEvery year
Columbus DaySecond Monday of OctoberEvery year
Veterans Day11 NovemberEvery year
Thanksgiving DayFourth Thursday of NovemberEvery year
Christmas Day25 DecemberEvery 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.
HolidayDateYears
New Year's Day1 JanuaryEvery year
Birthday of Martin Luther King, Jr.Third Monday of JanuarySince 1986
Washington's BirthdayThird Monday of FebruarySince 1971
Washington's Birthday22 FebruaryUntil 1970
Memorial DayLast Monday of MaySince 1971
Memorial Day30 MayUntil 1970
Juneteenth National Independence Day19 JuneSince 2021
Independence Day4 JulyEvery year
Labor DayFirst Monday of SeptemberEvery year
Columbus DaySecond Monday of OctoberSince 1971
Veterans Day11 NovemberSince 1978
Veterans DayFourth Monday of October1971 to 1977
Veterans Day11 NovemberUntil 1970
Thanksgiving DayFourth Thursday of NovemberEvery year
Christmas Day25 DecemberEvery 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.

  1. 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.
  2. 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.
  3. 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

KeyWhat it is
schemaAlways chronomock.calendar/1.
idThe name to type, the same as the file name.
country, subregionThe country in two letters, such as PL, and null.
nameen, and local in the place's own language.
weekendThe days off every week, such as ["saturday", "sunday"].
observedWhich 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_fromThe first year everything in the calendar has a source for: the holidays, the weekend and the rule for weekends.
law_as_ofThe day the holidays were checked against the law, written YYYY-MM-DD.
sourceWhere the first year, the weekend and the rule for weekends come from.
holidaysEach 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

ruleThe 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.