Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbDateTimeSetDate

Set a CTDATETIME type value with a CTDATE type value.

NOTE: See ctdbDateTimeSetDateMsec() if you need millisecond precision.

Declaration

CTDBRET ctdbDateTimeSetDate(pCTDATETIME pDateTime, CTDATE DATE)

Description

ctdbDateTimeSetDate() sets a CTDATETIME type value with a CTDATE type value. The time component of the CTDATETIME type value is left unchanged.

  • pDateTime [in/out] the packed date and time value.
  • Date [in] the CTDATE value.

Returns

ctdbDateTimeSetDate() returns CTDBRET_OK on success, or c-treeDB API error on failure.

See also

ctdbDateTimeGetDate(), ctdbDateTimeSetTime(), ctdbDateTimeSetTimeMsec

TOCIndex