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

oldCalendarDatefunction

The old-calendar date of a Gregorian date, from the new moons and the sun's longitude.

Import it

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

Also exported from: @johnmorrisdotca/koyomi-calendars

Definition

function oldCalendarDate(year: number, month: number, dayOfMonth: number): OldDate | null

Parameters

NameTypeDescription
yearnumber

Four-digit year.

monthnumber

Month 1 to 12.

dayOfMonthnumber

Day of the month.

Returns

OldDate | null

The old month, day and whether the month is a leap month, or null when the date is outside 1900 to 2100 or a new moon or principal term falls too near midnight in Japan to be sure.

Examples

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

console.log(oldCalendarDate(2026, 11, 3));
{ 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.