Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbDateTimeSetTime

Set a CTDATETIME type value with a CTTIME type value with whole second precision.

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

Declaration

CTDBRET ctdbDateTimeSetTime(pCTDATETIME pDateTime, CTTIME TIME)

Description

ctdbDateTimeSetTime() sets a CTDATETIME type value with a CTTIME type value. The date component of the CTDATETIME type value is left unchanged.

  • pDateTime [in/out] the packed date and time value.
  • Time [in] the CTTIME value.

Returns

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

See also

ctdbDateTimeSetDate(), ctdbDateTimeGetTime(), ctdbDateTimeSetTimeMsec()

TOCIndex