| ||||||||||
| Home Page | The Sun API | Gallery | InfoSearch | News | Links | Contact Us | ||||||||||
|
Sunlit Design > The Sun API > Documentation > sdUTDx Function | ||||||||||
|
- Introduction + Using the Functions + User Guide + Function Reference + Constants
|
sdUTDx FunctionDescriptionReturns a Universal Time Day (UTD) time value.sdUTDx converts a 24 hour UT clock time into a portion of a day for use by the sdxH function. SyntaxsdUTDx(hour, minute, second, timezone)
Return ValuessdUTDx returns an XML String. Assuming "nnn" stands for the numeric UTD value between 0 and 1 that is returned and "tz" the numeric value of the timezone, the UTD time value will have the following format:"nnn <UTD> nnn </UTD><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 converting the sum of
the hours, timezone, minutes, and seconds to a number of days then returning the decimal
(part of day) portion. The string UTD 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 UTD value corresponding to 7:12pm
UT:
In a UTD time value with an appended Time Zone - for example: The useful resolution of this time measure is approximately 1/10 of a millisecond. ExampleFind the UTD value corresponding to 2:12 pm Eastern Standard
Time (USA) (+5 gives UT):
Find the numeric value of the UTD value corresponding to 7pm in
Amsterdam (not Daylight saving): Find the UTD value of 10,800 seconds past midnight in Almaty
Kazakhstan (-6 gives UT): Find the UTD value of 10,800 seconds before midnight UT: |
|
||||||||
| (c) 2001-2013 Sunlit Design www.sunlit-design.com Tue, 18 Jun 2013 02:51:33 PM +600 gives UT | ||||||||||