Reference · The same, with suncalc 1's conventions (radians, azimuth from south)
timesconstant
The times suncalc 1 gives, as [altitude in degrees, morning name, evening name].
Import it
import { times } from "@johnmorrisdotca/wakusei-planets/suncalc/legacy";
Definition
const times: [number, string, string][] = [
[-0.833, "sunrise", "sunset"],
[-0.3, "sunriseEnd", "sunsetStart"],
[-6, "dawn", "dusk"],
[-12, "nauticalDawn", "nauticalDusk"],
[-18, "nightEnd", "night"],
[6, "goldenHourEnd", "goldenHour"],
]
Examples
import { times } from "@johnmorrisdotca/wakusei-planets/suncalc/legacy";
console.log(times.length);6What it prints (run when this page was built)