New c-treeDB functions allow you to convert a string to a timems value (time with milliseconds).
The string format does not support milliseconds: the milliseconds will either be lost (toString) or set to 0 (toTimeMsec). In the future the string format will be extended to support milliseconds.
ctdbTimeMsecToString
Convert a packed CTTIMEMS into a string
Prototype:
CTDBRET ctdbDECL ctdbTimeMsecToString(CTTIMEMS Time, CTTIME_TYPE TimeType, pTEXT pStr, VRLEN size)
Parameters:
Returns:
Return CTDBRET_OK on success.
ctdbStringToTimeMsec
Convert a time in string format to CTTIMEMS packed format.
Prototype:
CTDBRET ctdbDECL ctdbStringToTimeMsec(pTEXT pStr, CTTIME_TYPE TimeType, pCTTIMEMS pTime)
Parameters:
Returns:
Return CTDBRET_OK on success.