This demo program will calculate the sunrise, sunset, and solar noon times for any any location on Earth. (Latitudes greater than +- 70 degrees will not be accurate.)
Sorry, but I didn't use any CL whatsoever.
I've put everything into a single demo program. On my website, I will post the code for the service programs so that all your applcaition has to do is to bind to a directory where the service programs are located, and execute a single statement: ie
I'll have more functions provided in the Service Program, such as the length of the day. But for now, here is a demo program that has all the code self-contained.
All you have to do is to copy the DDS for SolarTimeD display file and compile it, and copy the program code for SolarTime rpg program and compile it.
EDIT New program and display file source in the post below.
Sorry, but I didn't use any CL whatsoever.
I've put everything into a single demo program. On my website, I will post the code for the service programs so that all your applcaition has to do is to bind to a directory where the service programs are located, and execute a single statement: ie
Code:
SunRiseTime = Solar_GetSunriseTime( SunDate : Latitude : Longitude : HourOffset : DayLightSavings );
All you have to do is to copy the DDS for SolarTimeD display file and compile it, and copy the program code for SolarTime rpg program and compile it.
EDIT New program and display file source in the post below.
Comment