Displaying Sunrise/Sunset on a Webpage
Stephen P. Morse

This is a template for displaying sunrise and sunset on your webpage.
View the page source to see how this is done

Today the sun will rise in San Francisco at and will set at
It will be at its highest point in the sky at
For other localities, change the latitude and longitude values in the GetSunriseSunset() routine