If this works away from GMT/zero-longitude I shall be pleasantly surprised -- at at least one point in the process I used to have to rely on the correct type overload being selected for DateTime.Subtract (where the wrong one is on DateTimeOffset.Subtract) by the IronPython run-time.
While the F# type system can be intrusive at times, at least I can rely on it to do what I want, and the F# version of this applet is the one I finished first -- here we now have a back-port of the F# version.
Planetary positions, including moon and sun look to be good; moon phases hopefully now correct. Check with the "Your Sky" map to confirm. There are tooltips for the planets, to help identify which speck is which. Threading issue (different threading behaviour in IronPython compared with F# for the Background Worker tasks) fixed 1-Apr-09.
Code is contained in the .xap file for anybody interested.
Sample query string : lat=52.000000&long=0.000000&locale=en-GB&hms=HH:mm:ss&date=d-MMM-yyyy
- lat
- Observer latitude in degrees, North being positive
- long
- Observer longitude in degrees, East being positive
- locale
- Override of the UI culture as per CultureInfo Class -- scroll down to Culture Names and Identifiers.
- hms
- Time of day format as per Custom date and time format strings
- date
- Date format as per Custom date and time format strings
Write to the author at — webmaster at windsong dot demon dot co dot uk.