By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,500 Members | 830 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,500 IT Pros & Developers. It's quick & easy.

Sunrise & sunset code

P: n/a
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

Nov 12 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On Thu, 15 Jan 2004 19:10:46 +0100, Georges Heinesch <ne**@geohei.lu>
wrote:
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.


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.
Nov 12 '05 #2

P: n/a
Chuck Grimsby wrote:
Try: http://www.scottandmichelle.net/scot.../code-031.html


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

--
Georges

Nov 12 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.