[title]Calculate Sunset and Sunrise Time[/title]
http://code.tinyclr.com/project/242/calculate-sunset-and-sunrise-time/
[line]
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.