| ||||||||
| Home Page | The Sun API | Gallery | InfoSearch | News | Links | Contact Us | ||||||||
|
Sunlit Design > The Sun API > Documentation > sdCTDx Function | ||||||||
|
- Introduction + Using the Functions + User Guide + Function Reference + Constants
|
sdCTDx FunctionDescriptionReturns a Clock Time Day (CTD) time value.sdCTDx converts a 24 hour clock time into a portion of a day for use by the sdxH function. SyntaxsdCTDx(hour, minute, second)
Return ValuessdCTDx returns an XML String. Assuming "nnn" stands for the numeric CTD value between 0 and 1 that is returned, the CTD time value will have the following format:"nnn <CTD> nnn </CTD>" 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, minutes and seconds to a number of days then returning the decimal
(part of day) portion. The string CTD 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 CTD value corresponding to 7:12pm:
The useful resolution of this time measure is approximately 1/10 of a millisecond. ExampleFind the CTD value corresponding to 7:12pm:
Find the numeric value of the CTD value corresponding to 6pm: Find the CTD value of 10,800 seconds past midnight: Find the CTD value of 10,800 seconds before midnight: |
|
||||||
| (c) 2001-2012 Sunlit Design www.sunlit-design.com Sat, 04 Feb 2012 04:19:52 PM +700 gives UT | ||||||||