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 · /animate

FlipDatetype

A day to show or turn to: a year, a month 1 to 12 and a day of the month.

Import it

import type { FlipDate } from "@johnmorrisdotca/koyomi-calendars/animate";

Definition

interface FlipDate {
    year: number;
    month: number;
    day: number;
}

Members

NameTypeDescription
yearnumber
monthnumber
daynumber

Examples

import { nextDay, type FlipDate } from "@johnmorrisdotca/koyomi-calendars/animate";

const today: FlipDate = { year: 2026, month: 11, day: 3 };
console.log(nextDay(today));
{ year: 2026, month: 11, day: 4 }

What it prints (run when this page was built)

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