Modules / ghcr.io / i2y

ritsu-holidays

The public holidays of the United States, the United Kingdom and Japan, as calendars of koyomi

  • Signed by i2y/ritsu
  • Digests match
  • Passes ritsu check
  • 3 data sources pinned by SHA-256
  • Published 2026-11-05
  • Needs ritsu 0.37.0 or later
  • Source

What it holds

NameWhat it isKnown from the dataTry it, or read its code
national_holidaysThe national holidays of Japan and the other days off under the Act on National Holidays, as the Cabinet Office lists them. Weekends are left open: the calendar that uses this one closes its own. The English version of 国民の祝日.cal1955-01-01 to 2027-12-31
国民の祝日国民の祝日と、国民の祝日に関する法律に規定する休日。内閣府の表のとおり。土日は休みにしない(このカレンダーを読むカレンダーが、自分で休みにする)1955-01-01 to 2027-12-31
england_and_walesThe bank holidays of England and Wales, as GOV.UK lists them. Weekends are left open: the calendar that uses this one closes its own. No offset: England and Wales has daylight saving time, so this calendar gives dates only2019-01-01 to 2028-12-31
northern_irelandThe bank holidays of Northern Ireland, as GOV.UK lists them. Weekends are left open: the calendar that uses this one closes its own. No offset: Northern Ireland has daylight saving time, so this calendar gives dates only2019-01-01 to 2028-12-31
scotlandThe bank holidays of Scotland, as GOV.UK lists them. Weekends are left open: the calendar that uses this one closes its own. No offset: Scotland has daylight saving time, so this calendar gives dates only2019-01-01 to 2028-12-31
federal_holidaysThe federal holidays of the United States, as the Office of Personnel Management lists them: the legal public holidays of 5 U.S.C. 6103, on the days an employee who works Monday to Friday has them. Inauguration Day, a holiday only around Washington, D.C., is left out. Weekends are left open: the calendar that uses this one closes its own. No offset: the country has several time zones and daylight saving time, so this calendar gives dates only2021-01-01 to 2030-12-31

The public holidays of the United States, the United Kingdom and Japan, as calendars of koyomi, for a module of ritsu to use. Each calendar closes the holidays and nothing else. Which other days a business is closed (Saturdays and Sundays, the days between Christmas and the New Year) is for the calendar that uses it to say.

FileCalendarHolidaysKnown from the data
us/federal_holidays.calfederal_holidaysThe federal holidays of the United States, on the days an employee who works Monday to Friday has them2021-01-01 to 2030-12-31
uk/england_and_wales.calengland_and_walesThe bank holidays of England and Wales2019-01-01 to 2028-12-31
uk/scotland.calscotlandThe bank holidays of Scotland2019-01-01 to 2028-12-31
uk/northern_ireland.calnorthern_irelandThe bank holidays of Northern Ireland2019-01-01 to 2028-12-31
japan/national_holidays.calnational_holidaysThe national holidays of Japan and the other days off under the Act on National Holidays1955-01-01 to 2027-12-31
japan/国民の祝日.cal国民の祝日The same, in Japanese1955-01-01 to 2027-12-31

The calendars of the United States and the United Kingdom have no offset: they have daylight saving time, so they give dates only. The calendars of Japan have the offset +09:00. Whether a day outside the range its data knows is a holiday is not known, and koyomi says so rather than guessing.

Use

Require the module, and the line that checks its signature:

$ ritsu mod add holidays ghcr.io/i2y/ritsu-holidays@1.1.0
require holidays oci "ghcr.io/i2y/ritsu-holidays" 1.1.0
signature "ghcr.io/i2y/ritsu-holidays" by matching "^https://github[.]com/i2y/ritsu/" issuer "https://token.actions.githubusercontent.com"

Then read a calendar from your own, and close what your business closes on top of it:

calendar office v1
description "The office in London: closed on Saturdays, Sundays and the bank holidays of England and Wales"
use calendar "@holidays/uk/england_and_wales.cal"

closed weekly sat, sun

Data

Each calendar pins its data file by its SHA-256. THIRD_PARTY_NOTICES.md says where each was taken from, when, and under which terms. The files of the United Kingdom and Japan are, byte for byte, the files their publishers serve.

The calendar files are under the MIT License or the Apache License, version 2.0, at your option, as ritsu is.

Versions

A version that takes in a new year's holidays raises the minor version. A version that renames a file or removes one raises the major version.

6 calendars

Each page is drawn by its language from the file at this version.

england_and_wales

uk/england_and_wales.calcalendar

The bank holidays of England and Wales, as GOV.UK lists them. Weekends are left open: the calendar that uses this one closes its own. No offset: England and Wales has daylight saving time, so this calendar gives dates only

Knows
2019-01-01 to 2028-12-31
Table
83 rows of data/bank-holidays.json
Source
https://www.gov.uk/bank-holidays.json
Pinned at
sha256:538b3482c28b85ec

northern_ireland

uk/northern_ireland.calcalendar

The bank holidays of Northern Ireland, as GOV.UK lists them. Weekends are left open: the calendar that uses this one closes its own. No offset: Northern Ireland has daylight saving time, so this calendar gives dates only

Knows
2019-01-01 to 2028-12-31
Table
103 rows of data/bank-holidays.json
Source
https://www.gov.uk/bank-holidays.json
Pinned at
sha256:538b3482c28b85ec

scotland

uk/scotland.calcalendar

The bank holidays of Scotland, as GOV.UK lists them. Weekends are left open: the calendar that uses this one closes its own. No offset: Scotland has daylight saving time, so this calendar gives dates only

Knows
2019-01-01 to 2028-12-31
Table
94 rows of data/bank-holidays.json
Source
https://www.gov.uk/bank-holidays.json
Pinned at
sha256:538b3482c28b85ec

federal_holidays

us/federal_holidays.calcalendar

The federal holidays of the United States, as the Office of Personnel Management lists them: the legal public holidays of 5 U.S.C. 6103, on the days an employee who works Monday to Friday has them. Inauguration Day, a holiday only around Washington, D.C., is left out. Weekends are left open: the calendar that uses this one closes its own. No offset: the country has several time zones and daylight saving time, so this calendar gives dates only

Knows
2021-01-01 to 2030-12-31
Table
110 rows of data/federal_holidays.csv
Pinned at
sha256:194cb4a1ff46ed4b

Try

From
1.0.0
To

Every answer stays the same.

ritsu compares every input, or says it cannot decide. It does not sample.

Behavior
0 of 5 calendars answer differently
Interface
No change
Files
3 added, 4 changed, 7 the same. require: no change

japan/national_holidays.cal

Same answers

japan/国民の祝日.cal

Same answers

uk/england_and_wales.cal

Same answers

uk/northern_ireland.cal

Same answers

uk/scotland.cal

Same answers

Interface

The whole report, as ritsu mod diff --format markdown writes it
  • Files: 3 added, 4 changed, 7 the same
  • require: no change
ChangeFile
addedus/data/federal_holidays.csv
addedus/data/opm-holidays.ics
addedus/federal_holidays.cal
changedREADME.ja.md
changedREADME.md
changedTHIRD_PARTY_NOTICES.md
changedritsu.mod

Behavior

  • japan/national_holidays.cal (koyomi): the same answers
  • japan/国民の祝日.cal (koyomi): the same answers
  • uk/england_and_wales.cal (koyomi): the same answers
  • uk/northern_ireland.cal (koyomi): the same answers
  • uk/scotland.cal (koyomi): the same answers

Interface

  • README.ja.md (digest): its bytes changed
  • README.md (digest): its bytes changed
  • THIRD_PARTY_NOTICES.md (digest): its bytes changed

A difference is shown in behavior or in an interface.

2 versions

VersionPublishedDigestFilesChecked
1.1.0 latest2026-11-05sha256:6b1809bd0a0a14its digests and its signature; passes ritsu check
1.0.02026-10-29sha256:63574d495cab11its digests and its signature; passes ritsu check

Calendars

Data and other files

About the module