hile wondering the net I discovered this blog entry by Mike Davidson that talked mentioned a php class someone had wrapped up called Astro_Sunrise that could be used to get the sunrise and sunset for any latitude and longitude on any day.
I decided to make it a s9y plugin[?] that was was pretty darn trivial, so I shelved it for a while.
Sometime later I came across this article on using GD along with a couple of helper function to draw any location on a world map. This kind of tied into the stuff I was doing with my Googlemap geolocation plugin, so I took a look. And voila!
If you look to the right you will see an alpha version of my latest plugin[?], Suntimes. This one displays a nifty little world map showing the current day/night terminator along with my local sunrise and sunset and the local time. My location is plotted on the map as well!
Pretty simple. I've also checked that it works through a daylight saving times change....so long as 1) your server knows about DST and 2) you set your clock FORWARD in the spring and BACKWARD in the fall...I think this apples to most DST in the northern hemisphere. If anyone knows better, drop me a comment.