入っているもの
米国と英国と日本の祝日を、ritsu のモジュールが使える koyomi のカレンダーにしたものです。どのカレンダーも、祝日だけを休みにします。ほかに何曜日を休むか(土曜と日曜、年末年始など)は、このカレンダーを読むカレンダーの側で書いてください。
米国と英国のカレンダーにはオフセットがありません。夏時間があるので、日付だけを決めます。日本のカレンダーのオフセットは +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 に書きました。英国と日本のファイルは、出している先が配るファイルとバイトまで同じです。
カレンダーのファイルは、ritsu と同じく、MIT License か Apache License 2.0 の好きなほうで使えます。
版
新しい年の祝日を入れる版は、マイナーの版を上げます。ファイルの名前を変える版と、ファイルを消す版は、メジャーの版を上げます。
カレンダー 6 個
ページは、この版のファイルからそれぞれの言語が描きました。
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
試すコードを読む
国民の祝日と、国民の祝日に関する法律に規定する休日。内閣府の表のとおり。土日は休みにしない(このカレンダーを読むカレンダーが、自分で休みにする)
- 知っている日
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
試すコードを読む
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
試すコードを読む
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
試すコードを読む
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
試すコードを読む
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
試すコードを読む