timesconstant
The altitudes of the Sun's times in degrees: the morning name when it rises through the angle, the evening name when it sets through it. The ones at the horizon move with the observer's height.
Import it
import { times } from "@johnmorrisdotca/wakusei-planets/suncalc";
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";
console.log(times.map((row) => row[1]).join(", "));sunrise, sunriseEnd, dawn, nauticalDawn, nightEnd, goldenHourEndWhat it prints (run when this page was built)