GetSunrise


Kløpulver for hjernecellerne

     
 

 
GetSunrise property
GetSunrise gets the hours of sunrise.

SolarPlexus.SetInput must be called in advance to set the input values for date, place on earth etc.

Syntax

DecHours = SolarPlexus.GetSunrise(Hours)

 

DecHours Return value. Double. Sunrise returned as decimal numeral with hours before the decimal point, and decimal fractions af hours after. Example: 17.343242
Hours Return value. String. Sunrise returned as a string with the format "hh:mm:ss.ff", where hh=hours, mm=minutes, ss=seconds, and ff=fractions of seconds. Example: "17:20:35.67" (which equals 17.343242)
In some places on earth, and in some time of the year, the sun never rises, or never sets. In that case the following are returned:
DecHours 0 is returned.
Hours In the northern hemisphere, and in summertime, the string "++:++" is returned.
In the northern hemisphere, and in wintertime, the string "--:--" is returned.
In the southern hemisphere, and in wintertime, the string "--:--" is returned.
In the southern hemisphere, and in summertime, the string "++:++" is returned.
Example When does the sun rise on August 30th, 1906 in Sydney?

Answer:

bullet SolarPlexus.SetInput(30,8,1906,"E151:13","S33:53",10)=1
bulletDecHours=SolarPlexus.GetSunrise(Hours) gives:
bulletDecHours=6.27449694
bulletHours="06:16:28.19"