previousUtcDayfunction
The UTC day before ms.
Import it
import { previousUtcDay } from "@johnmorrisdotca/chikyu-earth/door";
Definition
function previousUtcDay(ms: number): string
Parameters
| Name | Type | Description |
|---|---|---|
ms | number | Milliseconds since the epoch. |
Returns
string
The day before.
Examples
import { previousUtcDay } from "@johnmorrisdotca/chikyu-earth/door";
console.log(previousUtcDay(Date.UTC(2026, 5, 21, 12)));2026-06-20What it prints (run when this page was built)