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