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
| Name | Type | Description |
|---|---|---|
year | number | |
month | number | |
day | number |
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)