TutTimeCvtLookup look up a time converter by name
name
name of time converter (not case sensitive)
Pointer to the specified time converter, NULL
otherwise.
None
TutTimeCvtLookup returns a pointer to a time converter.
SmartSockets time converter names are not case sensitive (FULL
, full
, and Full
can all be used to look up the same time converter).
TutTimeCvtCreate, TutTimeCvtDestroy
This example looks up the time converter hms
, gets the current wall clock time, and then converts the time to a string using the hms
converter:
T_TIME_CVT time_cvtr; T_REAL8 wall_time; wall_time = TutGetWallTime(); TutOut("Raw wall clock time is %f.\n", wall_time); time_cvtr = TutTimeCvtLookup("hms"); if (time_cvtr != NULL) { T_STR *time_str; if (TutTimeCvtNumToStr(time_cvtr, wall_time, time_str)) { TutOut("Formatted wall clock time is %s\n", *time_str); } }
TIBCO SmartSockets™ Utilities Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |