Class to calculate sunrise and sunset

Category:
Dates and Math
Type:
Classes
Difficulty:
Intermediate
Author:
Scott Seligman

Version Compatibility: Visual Basic 5

More information:
This is a class I wrote based off a Java applet on a NOAA web page (see the source code for the URL). It calculates the sunrise, sunset, and solar noon given longitude and latitude coordinates. Additional, it knows the coordinates for about 40 cities.

Instructions: Click the link below to download the code. Select 'Save' from the IE popup dialog. Once downloaded, open the .zip file from your local drive using WinZip or a comparable program to view the contents.

Download clssunrise.zip