ctdbTimeToString
Convert a packed CTTIME into a string with whole second precision.
NOTE: See ctdbTimeMsecToString() if you need millisecond precision.
Declaration
CTDBRET ctdbTimeToString(CTTIME Time, CTTIME_TYPE TimeType,
pTEXT pStr, VRLEN size)
Description
ctdbTimeToString() converts a packed CTTIME into a string. To convert a packed CTTIME to seconds, use ctdbTimeToSeconds(). Use ctdbStringToTime() to convert from a string to CTTIME. Use ctdbDateToString() to convert a packed CTDATE into a string.
Returns
ctdbTimeToString() returns CTDBRET_OK on success, or c-treeDB API C API error on failure.
The possible errors associated with ctdbTimeToString() are:
See also
ctdbTimeToSeconds(), ctdbStringToTime(), ctdbStringToTimeMsec(), ctdbTimeMsecToString(), ctdbDateToString(), ctdbDateTimeToString()