HolidayJp provides functions related to Japanese holidays for Julia language. This uses the Japanese holiday dataset in holiday_jp/holiday_jp.
import Dates: Date
import HolidadyJp
HolidayJP.isholiday(Date("2024-02-23")) # true
HolidayJp.isholiday(2024, 12, 23) # false
HolidayJp.getholiday(2024, 2, 23).name # "天皇誕生日"
HolidayJp.getholiday(2024, 12, 23) # nothing
[h.date for h in HolidayJp.between(Date("2024-01-01"), Date("2025-01-01"))]
# 21-element Vector{Date}:
# 2024-01-01
# 2024-01-08
# ...
# 2024-11-23
julia> ] add HolidayJp
MIT