Reference · The same, with suncalc 1's conventions (radians, azimuth from south)
LegacySunTimestype
The Sun's times with every one a Date: an invalid Date (NaN) when the Sun does not reach that height that day.
Import it
import type { LegacySunTimes } from "@johnmorrisdotca/wakusei-planets/suncalc/legacy";
Definition
type LegacySunTimes = Record<string, Date>;
Examples
import { getTimes, type LegacySunTimes } from "@johnmorrisdotca/wakusei-planets/suncalc/legacy";
const t: LegacySunTimes = getTimes(new Date(Date.UTC(2026, 5, 21, 12)), 51.5, -0.1);
console.log(Object.keys(t).length);14What it prints (run when this page was built)