Modules / ghcr.io / i2y

ritsu-holidays

A newer version, 1.1.0, is out

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

  • Signed by i2y/ritsu
  • Digests match
  • Passes ritsu check
  • 2 data sources pinned by SHA-256
  • Published 2026-10-29
  • 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

The public holidays of the United Kingdom and of 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
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 Kingdom have no offset: the three nations 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.0.0
require holidays oci "ghcr.io/i2y/ritsu-holidays" 1.0.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 data file is, byte for byte, the file its publisher serves, and each calendar pins it by its SHA-256. THIRD_PARTY_NOTICES.md says where each was taken from, when, and under which terms.

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.

5 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

Try

1.0.0 is the oldest version here

When a new version is published, this tab says which inputs get a different answer, which days become closed or open, and which days the calendar newly knows.

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