473,385 Members | 1,593 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Sunrise & sunset code

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
2 6113
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

56
by: john bailo | last post by:
I just installed mono from ximian on my redHat 9 workstation and wrote a simple program from the interesting book ado.net in c# by Mahesh Chand. mono is fun ( is there ado for linux ? ...
4
by: Eurydice | last post by:
For a given town I search a javascript that gives the hour of the sunset and the sunrise. Looks simple but not found up to now on the net Thanks email : Dalip at ifrance.com...
4
by: johkar | last post by:
When the output method is set to xml, even though I have CDATA around my JavaScript, the operaters of && and < are converted to XML character entities which causes errors in my JavaScript. I know...
14
by: Arne | last post by:
A lot of Firefox users I know, says they have problems with validation where the ampersand sign has to be written as &amp; to be valid. I don't have Firefox my self and don't wont to install it only...
10
by: Immortalist | last post by:
Various aquisition devices that guide learning along particular pathways towards human biases. And as E.O. Wilson might say mental development appears to be genetically constrained. (1) Language...
1
by: Your Name | last post by:
I'm trying to use date_sunrise() and date_sunset() functions in my php5 code. I use them as follows: date_default_timezone_set("America/New_York"); $sr =...
1
by: Rob Szumlakowski | last post by:
Hi. I'm trying to determine what the expected Sunset Date for the official termination of support for the .NET 1.1 platform? When can we expect Microsoft to stop supporting .NET 1.1 and expect...
10
by: rup | last post by:
Hello, This is my first application on socket programming in vc++. I am facing problem that how to make connection to server, & make GET/POST request by HTTP. Please help me. Its urgent.......
0
by: tradeinputian.005 | last post by:
Dear my friend It is our pleasure to meet you here. we are Sunrise East Asia Sporting Goods Co.,Ltd in Fujian of China. our website: http://www.trade-in-putian.cn
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.