japaneseHolidaysOffunction
Every public holiday of a year, computed from the law's rules.
Import it
import { japaneseHolidaysOf } from "@johnmorrisdotca/koyomi-calendars/japanese";
Also exported from: @johnmorrisdotca/koyomi-calendars
Definition
function japaneseHolidaysOf(year: number): ReadonlyMap<string, JapaneseHoliday> | null
Parameters
| Name | Type | Description |
|---|---|---|
year | number | Four-digit year, 2000 to 2099. |
Returns
ReadonlyMap<string, JapaneseHoliday> | null
A map from YYYY-MM-DD to the holiday, or null for a year outside 2000 to 2099.
Examples
import { japaneseHolidaysOf } from "@johnmorrisdotca/koyomi-calendars/japanese";
const holidays = japaneseHolidaysOf(2026);
console.log(holidays?.size, holidays?.get("2026-01-01")?.en);18 New Year's DayWhat it prints (run when this page was built)