Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbDateTimeGetTime

Retrieve a CTTIME type value from a CTDATETIME type value with whole second precision.

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

Declaration

CTDBRET ctdbDateTimeGetTime(CTDATETIME DateTime, pCTTIME pTIME)

Description

ctdbDateTimeGetTime() retrieves a CTTIME type value from a CTDATETIME type value.

  • DateTime [in] the packed date and time value.
  • pTime [out] the CTTIME value.

Returns

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

See also

ctdbDateTimeGetDate(), ctdbDateTimeSetTime(), ctdbDateTimeGetTimeMsec()

TOCIndex