| ||||||||||||||
| Home Page | The Sun API | Gallery | InfoSearch | News | Links | Contact Us | ||||||||||||||
|
Sunlit Design > The Sun API > Documentation > sdSDYx Function | ||||||||||||||
|
- Introduction + Using the Functions + User Guide + Function Reference + Constants
|
sdSDYx FunctionDescriptionReturns a Solar Day of Year (SDY) time value.sdSDYx converts a Month, Day and 24 hour clock time for a given Timezone into a Solar Day of Year value. The sdxAlt, sdxAzi, sdxDecl, sdxEOT, sdxFindAnnFeatx, sdxH, sdxGetv, sdxTime2Text, and sdxTimeUnpackx functions all use SDY time values. SyntaxsdSDYx(month, day, hour, minute, second, timezone)
Return ValuessdSDYx returns an XML String. Assuming "nnn" stands for the numeric SDY value between 0 and 365 that is returned and "tz" the numeric value of the timezone, the SDY time value will have the following format:"nnn <SDY> nnn </SDY><TimeZone> tz </TimeZone>" ErrorsIf the function detects an error in any of it's input parameters then it returns: "-99999999<Error>-99999999</Error>" If the function returns an error value, then: RemarksThis function calculates it's return value by finding the SDY of
the beginning of the month then adding the sum of
the days, hours, timezone, minutes, and seconds. If the result is less than 1 or greater than 365.99999... then the number is
reduced to the range 1-365.99999... February is counted has having 28 days. February 29th - If you wish to find solar parameters for a specific February 29th, then please use the sdMJDx function. The string SDY time value may be converted to a simple numeric value using the sdxGetv function. The XML string that this function returns has
the numerical value of the result at the beginning of the string followed by the
result in proper XML format. This value is the default numeric value of
the string. It may be returned using the Find the numeric value of the SDY value corresponding to
Midnight UT Jan 5:
In a SDY time value with an appended Time Zone - for example: To find the day number of the first day of month m, use The useful resolution of this time measure is approximately 1/10 of a millisecond. ExampleFind the SDY value corresponding to February 23rd, 2:12 pm Eastern Standard
Time (USA) (+5 gives UT):
Find the numeric value of the SDY value corresponding to
November 17th, 7pm in
Amsterdam (not Daylight saving): Find the SDY value corresponding to midday UT, February 29th: Print a list of Solar Declinations (in degrees) for midday in Almaty
Kazakhstan (-6 gives UT) for everyday of the year: |
|
||||||||||||
| (c) 2001-2010 Sunlit Design www.sunlit-design.com Tue, 09 Mar 2010 02:50:25 PM +700 gives UT | ||||||||||||||