previousDayfunction
The day before date.
Import it
import { previousDay } from "@johnmorrisdotca/koyomi-calendars/animate";
Definition
function previousDay(date: FlipDate): FlipDate
Parameters
| Name | Type | Description |
|---|---|---|
date | FlipDate | A year, month and day. |
Returns
FlipDate
The previous day, across the start of a month or a year.
Examples
import { previousDay } from "@johnmorrisdotca/koyomi-calendars/animate";
console.log(previousDay({ year: 2026, month: 1, day: 1 }));{ year: 2025, month: 12, day: 31 }What it prints (run when this page was built)