@squawk
    Preparing search index...
    • 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).

      • date: Date

        UTC date for which to compute solar times.

      Returns SolarTimes

      Solar times (sunrise, sunset, civil twilight begin/end) in UTC.