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

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

NameTypeDescription
yearnumber

Four-digit year.

monthnumber

Month 1 to 12.

dayOfMonthnumber

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));
元日
null

What it prints (run when this page was built)

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