モジュール / ghcr.io / i2y

ritsu-holidays

新しい版 1.1.0 があります

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

  • i2y/ritsu の署名を確かめました
  • ダイジェストが一致
  • ritsu check を通ります
  • データ 2 件を SHA-256 で固定
  • 公開 2026-10-29
  • ritsu 0.37.0 以降が要ります
  • ソース

入っているもの

名前説明データの範囲試す、コードを読む
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 〜 2027-12-31
国民の祝日国民の祝日と、国民の祝日に関する法律に規定する休日。内閣府の表のとおり。土日は休みにしない(このカレンダーを読むカレンダーが、自分で休みにする)1955-01-01 〜 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 〜 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 〜 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 〜 2028-12-31

英国と日本の祝日を、ritsu のモジュールが使える koyomi のカレンダーにしたものです。どのカレンダーも、祝日だけを休みにします。ほかに何曜日を休むか(土曜と日曜、年末年始など)は、このカレンダーを読むカレンダーの側で書いてください。

ファイルカレンダー休みにする日データで分かる範囲
uk/england_and_wales.calengland_and_walesイングランドとウェールズのバンクホリデー2019-01-01〜2028-12-31
uk/scotland.calscotlandスコットランドのバンクホリデー2019-01-01〜2028-12-31
uk/northern_ireland.calnorthern_ireland北アイルランドのバンクホリデー2019-01-01〜2028-12-31
japan/national_holidays.calnational_holidays国民の祝日と、国民の祝日に関する法律に規定する休日1955-01-01〜2027-12-31
japan/国民の祝日.cal国民の祝日同じもの(日本語の版)1955-01-01〜2027-12-31

英国のカレンダーにはオフセットがありません。三つの地域には夏時間があるので、日付だけを決めます。日本のカレンダーのオフセットは +09:00 です。データが知っている範囲の外の日が祝日かどうかは分からないので、koyomi は推し量らずに、分からないと言います。

使い方

モジュールを依存に足し、署名を確かめる行を書きます。

$ 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"

自分のカレンダーでこのカレンダーを読み、その上に自分の休みを足します。

calendar 事務所(office) v1
description "東京の事務所。土日と国民の祝日を休む"
offset +09:00
use calendar "@holidays/japan/国民の祝日.cal"

closed weekly sat, sun

データ

データのファイルは、出している先が配るファイルとバイトまで同じで、カレンダーが SHA-256 で固定しています。どこから、いつ、どの条件で取ったかは THIRD_PARTY_NOTICES.md に書きました。

  • uk/data/bank-holidays.json:GOV.UK のバンクホリデー(https://www.gov.uk/bank-holidays.json)。Open Government Licence v3.0 で使えます。Contains public sector information licensed under the Open Government Licence v3.0.
  • japan/data/syukujitsu.csv:内閣府の国民の祝日の表(https://www8.cao.go.jp/chosei/shukujitsu/syukujitsu.csv)。配られたままの Shift_JIS です。公共データ利用規約(第1.0版)(PDL1.0)で使えます。

カレンダーのファイルは、ritsu と同じく、MIT License か Apache License 2.0 の好きなほうで使えます。

版

新しい年の祝日を入れる版は、マイナーの版を上げます。ファイルの名前を変える版と、ファイルを消す版は、メジャーの版を上げます。

カレンダー 5 個

ページは、この版のファイルからそれぞれの言語が描きました。

national_holidays

japan/national_holidays.calカレンダー

The 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 国民の祝日.cal

知っている日
1955-01-01 〜 2027-12-31
UTC オフセット
+09:00
表
data/syukujitsu.csv の 1,067 行
出典
https://www8.cao.go.jp/chosei/shukujitsu/syukujitsu.csv
固定した版
sha256:cec37a743c96995c

国民の祝日

japan/国民の祝日.calカレンダー

国民の祝日と、国民の祝日に関する法律に規定する休日。内閣府の表のとおり。土日は休みにしない(このカレンダーを読むカレンダーが、自分で休みにする)

知っている日
1955-01-01 〜 2027-12-31
UTC オフセット
+09:00
表
data/syukujitsu.csv の 1,067 行
出典
https://www8.cao.go.jp/chosei/shukujitsu/syukujitsu.csv
固定した版
sha256:cec37a743c96995c

england_and_wales

uk/england_and_wales.calカレンダー

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

知っている日
2019-01-01 〜 2028-12-31
表
data/bank-holidays.json の 83 行
出典
https://www.gov.uk/bank-holidays.json
固定した版
sha256:538b3482c28b85ec

northern_ireland

uk/northern_ireland.calカレンダー

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

知っている日
2019-01-01 〜 2028-12-31
表
data/bank-holidays.json の 103 行
出典
https://www.gov.uk/bank-holidays.json
固定した版
sha256:538b3482c28b85ec

scotland

uk/scotland.calカレンダー

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

知っている日
2019-01-01 〜 2028-12-31
表
data/bank-holidays.json の 94 行
出典
https://www.gov.uk/bank-holidays.json
固定した版
sha256:538b3482c28b85ec

試す

1.0.0 はこのサイトでいちばん古い版です

新しい版が公開されると、このタブに、どの入力の答えが変わるか、どの日が休みに変わるか、どの日を新しく知るかが出ます。

版 2 個

版公開ダイジェストファイル確かめたこと
1.1.0 最新2026-11-05sha256:6b1809bd0a0a14ダイジェストと署名、ritsu check を通過
1.0.02026-10-29sha256:63574d495cab11ダイジェストと署名、ritsu check を通過

カレンダー

データとそのほかのファイル

japan/data/syukujitsu.csv21,538 バイト
uk/data/bank-holidays.json22,207 バイト

モジュールについて

README.ja.md3,240 バイト
README.md2,867 バイト
THIRD_PARTY_NOTICES.md2,606 バイト
ritsu.mod577 バイト