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

OldDatetype

A date of the old Japanese calendar (旧暦, kyūreki): a month 1 to 12, a day, and whether the month is a leap month.

Import it

import type { OldDate } from "@johnmorrisdotca/koyomi-calendars/japanese";

Also exported from: @johnmorrisdotca/koyomi-calendars

Definition

interface OldDate {
    readonly month: number;
    readonly day: number;
    readonly leap: boolean;
}

Members

NameTypeDescription
monthnumber

1 to 12.

daynumber
leapboolean

The month is a leap month (閏月) of the number before it.

Examples

import { oldCalendarDate, type OldDate } from "@johnmorrisdotca/koyomi-calendars/japanese";

const old: OldDate | null = oldCalendarDate(2026, 11, 3);
console.log(old);
{ month: 9, day: 24, leap: false }

What it prints (run when this page was built)

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