dayNightFactsfunction
The three facts of the day and night sheet for a moment, with the place the Sun is straight overhead then.
Import it
import { dayNightFacts } from "@johnmorrisdotca/chikyu-earth/sheets";
Definition
function dayNightFacts(ms: number, lang: Lang): string[]
Parameters
| Name | Type | Description |
|---|---|---|
ms | number | The moment, in milliseconds since the Unix epoch. |
lang | Lang |
|
Returns
string[]
Three sentences.
Examples
import { dayNightFacts } from "@johnmorrisdotca/chikyu-earth/sheets";
console.log(dayNightFacts(Date.UTC(2026, 5, 21, 12), "en")[1]);At 2026-06-21 12:00 UTC the Sun is straight overhead at 23.4° N, 0.5° E.What it prints (run when this page was built)