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
| Name | Type | Description |
|---|---|---|
month | number | 1 to 12. |
day | number | |
leap | boolean | 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)