GetSunset


Kløpulver for hjernecellerne

     
 

 
GetSunset property
GetSunset gets the hours of sunset.

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

Syntax

DecHours = SolarPlexus.GetSunset(Hours)

 

DecHours Return value. Double. Sunset returned as decimal numeral with hours before the decimal point, and decimal fractions af hours after. Example: 17.343242
Hours Return value. String. Sunset 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 In the northern hemisphere, and in summertime, 24 is returned.
In the northern hemisphere, and in wintertime, 0 is returned.
In the southern hemisphere, and in wintertime, 0 is returned.
In the southern hemisphere, and in summertime, 24 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 set on September 3rd, 1948 in Copenhagen?

Answer:

bullet SolarPlexus.SetInput(3,9,1948,"E12:34","N55:41",1)=1
bulletDecHours=SolarPlexus.GetSunrise(Hours) gives:
bulletDecHours=18,9817674
bulletHours="18:58:54.36"
bulletand an hour later if daylight saving time was active then!