1.0.1 • Published 3 years ago
@ddnn55/daylight v1.0.1
daylight
Predict the time of sunrise and sunset. Adapted from https://en.wikipedia.org/wiki/Sunrise_equation
daylight(date, latitude, longitude) ⇒ Object ⏏
Predict sunrise and sunset.
Kind: Exported function
Returns: Object - Predicted time of sunrise and sunset
Param | Type | Description |
---|---|---|
date | Date | |
latitude | Number | north/south location; -90 (south pole) to 90 (north pole) |
longitude | Number | east/west location; -180 to 180 |