4.3.64 ctdbDateToString
Convert a packed CTDATE into a string.
Declaration
CTDBRET ctdbDateToString(CTDATE date, CTDATE_TYPE DateType,pTEXT pStr, VRLEN size)Description
ctdbDateToString converts a packed CTDATE into a string. The date is converted to string based on the DateType parameter. To convert a packed CTTIME to string, use ctdbTimeToString. Use ctdbStringToDate to convert from a string to CTDATE.
- date [in] the date, in CTDATE format.
- DateType [in] the date type. Valid types are listed in Section 4.1 "c-treeDB definitions" on page 4-1.
- pStr [in] the pointer to the string that will result from the conversion.
- size [in] the buffer size of the string.
Returns
ctdbDateToString returns CTDBRET_OK on success, or c-treeDB C error on failure.
The possible errors associated with ctdbDateToString are:
See also
ctdbStringToDate, ctdbTimeToString, ctdbDateTimeToString
|
FairCom Corporation www.faircom.com |