4.3.62 ctdbDateTimeToString
Convert a packed CTDATETIME into a string.
Declaration
CTDBRET ctdbDateTimeToString(CTDATETIME DateTime, CTDATE_TYPEDateType, 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.
- DateTime [in] the date and time, in CTDATETIME format.
- DateType [in] the date type. Valid types are listed in Section 4.1 "c-treeDB definitions" on page 4-1.
- TimeType [in] the time type. Valid types are listed in Section 4.1 "c-treeDB definitions" on page 4-1.
- pStr [out] a pointer to the string that will result from the conversion.
- size [in] the buffer size for the string.
Returns
ctdbDateTimeToString returns CTDBRET_OK on success, or c-treeDB C error on failure.
The possible errors associated with ctdbDateTimeToString are:
See also
ctdbTimeToString, ctdbDateToString, ctdbStringToDateTime
|
FairCom Corporation www.faircom.com |