Skip to the content

Koyomi Calendars暦

Calendar pages as SVG: a day as an icon in 18 original designs, a whole month as a poster or a desk pad, and the page turning from one day to the next.

Koyomi is the Japanese word 暦 for the calendar. About the name

Contents

Reference · /japanese

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

NameTypeDescription
yearnumber

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 Day

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/koyomi-calendars 0.3.0.