モジュール / ghcr.io / i2y

ritsu-holidays

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

  • i2y/ritsu の署名を確かめました
  • ダイジェストが一致
  • ritsu check を通ります
  • データ 3 件を SHA-256 で固定
  • 公開 2026-11-05
  • 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
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 〜 2030-12-31

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

ファイルカレンダー休みにする日データで分かる範囲
us/federal_holidays.calfederal_holidays米国の連邦の祝日。月曜から金曜に働く職員が休む日2021-01-01〜2030-12-31
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.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"

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

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

closed weekly sat, sun

データ

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

  • us/data/federal_holidays.csv:米国人事管理局(OPM)の iCalendar のファイル(https://www.opm.gov/policy-data-oversight/pay-leave/federal-holidays/holidays.ics)の日付から、大統領就任式の日を除いたものです。koyomi が CSV の表を読むので、この形にしました。us/data/opm-holidays.ics が配られたままのファイルです。米国政府の著作物です。
  • 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 の好きなほうで使えます。

版

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

カレンダー 6 個

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

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

federal_holidays

us/federal_holidays.calカレンダー

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

知っている日
2021-01-01 〜 2030-12-31
表
data/federal_holidays.csv の 110 行
固定した版
sha256:194cb4a1ff46ed4b

試す

比べる元
1.0.0
比べる先

どの答えも変わりません。

ritsu はすべての入力を比べるか、決められないと言います。一部を試すことはしません。

振る舞い
カレンダー 5 のうち 0 で答えが変わります
インターフェース
変わりません
ファイル
3 増えた、4 変わった、7 同じ。require は変わりません

japan/national_holidays.cal

同じ答え

japan/国民の祝日.cal

同じ答え

uk/england_and_wales.cal

同じ答え

uk/northern_ireland.cal

同じ答え

uk/scotland.cal

同じ答え

インターフェース

報告の全文(ritsu mod diff --format markdown と同じ)
  • ファイル:足した 3、変わった 4、同じ 7
  • require:変わりません
変わり方ファイル
足したus/data/federal_holidays.csv
足したus/data/opm-holidays.ics
足したus/federal_holidays.cal
変わったREADME.ja.md
変わったREADME.md
変わったTHIRD_PARTY_NOTICES.md
変わったritsu.mod

振る舞い

  • japan/national_holidays.cal (koyomi):同じ答えです
  • japan/国民の祝日.cal (koyomi):同じ答えです
  • uk/england_and_wales.cal (koyomi):同じ答えです
  • uk/northern_ireland.cal (koyomi):同じ答えです
  • uk/scotland.cal (koyomi):同じ答えです

インターフェース

  • README.ja.md (ダイジェスト):中身が変わりました
  • README.md (ダイジェスト):中身が変わりました
  • THIRD_PARTY_NOTICES.md (ダイジェスト):中身が変わりました

振る舞いかインターフェースに違いが見つかりました。

版 2 個

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

カレンダー

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

モジュールについて

README.ja.md3,852 バイト
README.md3,472 バイト
THIRD_PARTY_NOTICES.md3,580 バイト
ritsu.mod766 バイト