Sunset and Sunrise Calculation Based on Latitude, Longitude and UTC Offset for MySQL
This is an implementation of the United States Naval Observatory's algorithm for calculating sunrise/sunset based on latitude, longitude, and current timezone. It is a translation of a solution published on CodeProject by