japaneseHolidayfunction
The public holiday of a day, in both languages.
Import it
import { japaneseHoliday } from "@johnmorrisdotca/koyomi-calendars/japanese";
Also exported from: @johnmorrisdotca/koyomi-calendars
Definition
function japaneseHoliday(year: number, month: number, dayOfMonth: number): JapaneseHoliday | null
Parameters
| Name | Type | Description |
|---|---|---|
year | number | Four-digit year. |
month | number | Month 1 to 12. |
dayOfMonth | number | Day of the month. |
Returns
JapaneseHoliday | null
The holiday, or null for a day with none or a year the rules do not cover.
Examples
import { japaneseHoliday } from "@johnmorrisdotca/koyomi-calendars/japanese";
console.log(japaneseHoliday(2026, 1, 1)?.ja);
console.log(japaneseHoliday(2026, 1, 2));元日
nullWhat it prints (run when this page was built)