These functions are used to work with time values. Functions are included to retrieve various kinds of time, set various kinds of time, set up callbacks which are executed when time changes and more.
TutGetCurrentTime determine the current SmartSockets data time
TutGetCurrentTimeStruct determine the current SmartSockets data time as a time struct
TutGetWallTime determine the current wall clock (computer) time
TutGetWallTimeStruct determine the current wall clock (computer) time as a time struct
TutSetCurrentTime set the current data time for the process
TutSetCurrentTimeStruct set the current data time for the process, using the most precise method
TutTimeChangeCbCreate create a time change callback
TutTimeChangeCbLookup look up a time change callback
TutTimeCvtCreate create a time converter
T_TIME_CVT TutTimeCvtCreate(name
,num_to_str_func
,str_to_num_func
,destroy_func
) T_STRname
; T_TIME_CVT_NUM_TO_STR_FUNCnum_to_str_func
; T_TIME_CVT_STR_TO_NUM_FUNCstr_to_num_func
; T_TIME_CVT_DESTROY_FUNCdestroy_func
;
TutTimeCvtDestroy destroy a time converter
TutTimeCvtLookup look up a time converter by name
TutTimeCvtNumToStr convert a numeric time value to a string
T_BOOL TutTimeCvtNumToStr(time_cvtr
,time_num
,time_str_return
) T_TIME_CVTtime_cvtr
; T_REAL8time_num
; T_STR *time_str_return
;
TutTimeCvtStrToNum convert a string time value to a number
T_BOOL TutTimeCvtStrToNum(time_cvtr
,time_str
,time_num_return
) T_TIME_CVTtime_cvtr
; T_STRtime_str
; T_REAL8 *time_num_return
;
TutTimeCvtTraverse traverse all time converters
T_PTR TutTimeCvtTraverse(traverse_func
,traverse_arg
) T_TIME_CVT_TRAV_FUNCtraverse_func
; T_PTRtraverse_arg
;
TutTimeNumToStr convert a time number to string using the Time_Format option
TutTimeStrToNum convert a string time to a number using the Time_Format option
TIBCO SmartSockets™ API Quick Reference Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |