[title]Calculate Sunset and Sunrise Time[/title]
The SunTime class calculates the sunrise and sunset time at a given location / global position. This class implements an algorithm found in Almanac for Computers (1990) published by Nautical Almanac Office.
In home control applications, the time of sunrise and sunset are handy for taking certain actions such as closing blinds.
And so began the search for an accurate calculation of these times. The search ended with a piece of pseudo code from the Almanac for Computers that also proved to work very accurately.