Give coodinates, get the sunrise, sunset, and solar noon, and a few more sun-based time values
Note: This libarry is not perfectly accurate, but it is good enough for many applications. Depending on your location, it could be off by 1-5 minutes.
The following are the more useful functions in the library (see code for complete list)
- IsNight - Tells whether it's currently after sunset and before sunrise, given coordinates, the local time, and the timezone
- Sunrise - Gives the time of sunrise, given coordinates, current date, and timezone
- Sunset - Gives the time of sunset, given coordinates, current date, and timezone
- Solar Noon - Gives the time of solar noon, given coordinates, current date, and timezone