sunrise: 2010/11/2 12:47:40 UTC
sunset: 2010/11/2 23:24:25 UTC
noon: 5:18:22.679044
That's where I'm stuck. I'm a python beginner and frankly not much of a programmer in general.
Any suggestions would be most welcome!
Answers
Solar noon is not the mean of sunrise and sunset (see equation of time for the explanation). The ephem package has methods for getting transit times which you should use instead:
Note that noon today is 13 seconds later (at your location) than the mean of sunrise and sunset.
(The line of code ephem.date((sunrise + sunset) / 2) shows how you could easily manipulate dates in the ephem package, if it were the right thing to do.)