Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbDateTimeGetDate

Retrieve a CTDATE type value from a CTDATETIME type value

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

Declaration

CTDBRET ctdbDateTimeGetDate(CTDATETIME DateTime, pCTDATE pDATE)

Description

ctdbDateTimeGetDate() retrieves a CTDATE type value from a CTDATETIME type value.

  • DateTime [in] the packed date and time value.
  • pDate [out] the CTDATE value.

Returns

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

See also

ctdbDateTimeSetDate(), ctdbDateTimeGetTime(), ctdbDateTimeGetTimeMsec

TOCIndex