Computing Sunrise and Sunset in One Step
Stephen P. Morse, San Francisco



CHOOSE A DATE:            

CHOOSE A TIMEZONE: Either specify the time difference from Greenwich, or select the name of a timezone
hours minutes
of Greenwich
     
Convert to Daylight Saving Time

CHOOSE A LOCATION: Either specify the longitude and latitude, or select the name of a city
degrees minutes seconds
Latitude of the Equator
Longitude of Greenwich
     
First select a region
Then select a state
Finally select the city

RESULTS:
sunrise       solar noon       sunset       errors


My original algorithm assumed a circular orbit and was therefore inaccurate
Current algorithm is derived from code appearing at http://www.srrb.noaa.gov/highlights/sunrise/sunrise.html
Lists of longitudes and latitudes and of world time zones were derived from tables at http://www.jeffreyrbrown.info/qiblih/latlong.html
    (formerly at http://bcca.org, the Bahai Computer and Communication Association's website)

© Stephen P. Morse, 2003