Usage
List the holidays of a year or month, look up a day, and check whether a date is a holiday.
List a year's holidays
Year listings are read-only and sorted by date in ascending order by default.
import jp.kurashina.japanholidays.Holidays;
Holidays.getHolidays(2026).forEach(holiday ->
System.out.println(holiday.getDate() + " " + holiday.getName()));
Holidays.getHolidays(2026, Holidays.SortOrder.DESC);
import { getHolidays } from "@kurashina-design/japan-holidays";
console.table(getHolidays(2026));
getHolidays(2026, "desc");
from japan_holidays import get_holidays
for holiday in get_holidays(2026):
print(holiday.date, holiday.name, holiday.japanese_era_date)
get_holidays(2026, order="desc")
List a month's holidays
Months are integers from 1 to 12. A covered month with no holidays returns an empty list.
Holidays.getHolidaysForMonth(2026, 5).forEach(holiday ->
System.out.println(holiday.getDate() + " " + holiday.getName()));
Holidays.getHolidaysForMonth(2026, 5, Holidays.SortOrder.DESC);
import { getHolidaysForMonth } from "@kurashina-design/japan-holidays";
console.table(getHolidaysForMonth(2026, 5));
getHolidaysForMonth(2026, 5, "desc");
from japan_holidays import get_holidays_for_month
for holiday in get_holidays_for_month(2026, 5):
print(holiday.date, holiday.name, holiday.japanese_era_date)
get_holidays_for_month(2026, 5, order="desc")
Look up a day
A daily lookup returns the holiday object, or an empty value for an ordinary day in a covered year.
import java.time.LocalDate;
Holidays.getHoliday(LocalDate.of(2026, 11, 23)); // Optional[Holiday[...]]
Holidays.getHoliday(2026, 11, 24); // Optional.empty()
getHoliday("2026-11-23"); // Holiday object
getHoliday(2026, 11, 24); // null
from datetime import date
get_holiday(date(2026, 11, 23)) # Holiday object
get_holiday(2026, 11, 24) # None
Check whether a day is a holiday
Holidays.isHoliday(LocalDate.of(2026, 11, 23)); // true
import { isHoliday } from "@kurashina-design/japan-holidays";
isHoliday("2026-11-23"); // true
from datetime import date
from japan_holidays import is_holiday
is_holiday(date(2026, 11, 23)) # True
Sort order
Pass Holidays.SortOrder.ASC or Holidays.SortOrder.DESC in Java, and
"asc" or "desc" in TypeScript and Python. The default is ascending.