Computes sunrise, sunset, and civil twilight times for a given geographic
position and UTC date.
Uses the NOAA solar calculator algorithm. Results are accurate to within
approximately one minute for dates between 1901 and 2099.
In polar regions, some or all events may not occur on a given date. When an
event does not occur, the corresponding property is omitted from the result.
Parameters
lat: number
Observer latitude in decimal degrees (positive north).
lon: number
Observer longitude in decimal degrees (positive east).
Computes sunrise, sunset, and civil twilight times for a given geographic position and UTC date.
Uses the NOAA solar calculator algorithm. Results are accurate to within approximately one minute for dates between 1901 and 2099.
In polar regions, some or all events may not occur on a given date. When an event does not occur, the corresponding property is omitted from the result.