Connecting Tech Pros Worldwide Forums | Help | Site Map

Sunrise & sunset code

Georges Heinesch
Guest
 
Posts: n/a
#1: Nov 12 '05
Hi.

I need some VBA code to calculate sunrise and sunset for certain
locations. Is there any know code for this (or library) or is there any
site which is holding such formulas?

The code should calculate sunrise and sunset with an accuracy of #30
seconds. I have code which provides 1/100 second accuracy, but the time
required for calculation is unaccepatble.

Thanks for any help.

--
Georges


fredg@example.invalid
Guest
 
Posts: n/a
#2: Nov 12 '05

re: Sunrise & sunset code


On Thu, 15 Jan 2004 19:10:46 +0100, Georges Heinesch <news@geohei.lu>
wrote:
[color=blue]
>Hi.
>
>I need some VBA code to calculate sunrise and sunset for certain
>locations. Is there any know code for this (or library) or is there any
>site which is holding such formulas?
>
>The code should calculate sunrise and sunset with an accuracy of #30
>seconds. I have code which provides 1/100 second accuracy, but the time
>required for calculation is unaccepatble.
>
>Thanks for any help.[/color]

Well, you asked for code, so look here:
http://aa.usno.navy.mil/faq/docs/SunApprox.html

I think your not going to get the accuracy you say your looking for.
Sunrise and Sunset vary according to location, elevation, surrounding
elevation, etc.

If you wish to search further, open any browser and search for
"Sunrise times", without the quotes.
--
Fred

Please reply only to this newsgroup.
I do not reply to personal e-mail.
Georges Heinesch
Guest
 
Posts: n/a
#3: Nov 12 '05

re: Sunrise & sunset code


Chuck Grimsby wrote:
[color=blue]
> Try: http://www.scottandmichelle.net/scot.../code-031.html[/color]

This looks very (!) promising. I'm gonna dig further as soon as time
permits. Thanks a lot for the link!

--
Georges

Closed Thread


Similar Microsoft Access / VBA bytes