Product Documentation

FairCom DB 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 FairCom DB API error on failure.

See also

ctdbDateTimeSetDate(), ctdbDateTimeGetTime(), ctdbDateTimeSetTimeMsec()

TOCIndex