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);

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);

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()

Check whether a day is a holiday

Holidays.isHoliday(LocalDate.of(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.