ctdbDateTimeToString
Convert a packed CTDATETIME into a string including milliseconds.
Declaration
CTDBRET ctdbDateTimeToString(CTDATETIME DateTime, CTDATE_TYPE
DateType, CTTIME_TYPE TimeType, pTEXT pStr, VRLEN size)
Description
ctdbDateTimeToString() converts a packed CTDATETIME into a string. The date is converted to string based on the DateType parameter, and the time is converted to string based on the TimeType parameter.
This function supports the CTTIME_HHMST mode, which forces the hour to be two digits and returns time as hh:mm:ss.ttt (24 hour).
Returns
ctdbDateTimeToString() returns CTDBRET_OK on success, or c-treeDB API error on failure.
The possible errors associated with ctdbDateTimeToString() are:
See also
ctdbTimeToString(), ctdbDateToString(), ctdbStringToDateTime()