Re: Calculate Sunrise, Sunset?
Re: Calculate Sunrise, Sunset?
- Subject: Re: Calculate Sunrise, Sunset?
- From: Chris Espinosa <email@hidden>
- Date: Thu, 5 Feb 2004 17:12:41 -0800
On Feb 5, 2004, at 2:39 PM, Marconi wrote:
Can anyone steer me to where I can learn how to calculate local
sunrise and sunset times with AS, given latitude and longitude?
This will be harder in AppleScript than it would be in other languages
(say, Java) because it requires trigonometry, and AppleScript has no
built-in trig functions.
There are dozens of these on the Web. You might start with
http://www.jgiesen.de/astro/astroJS/SunPositionCalculator.htm
Go to that page and choose View Source; the JavaScript to calculate
sunrise and sunset is all there.
Chris
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.