Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbTimeUnpack

Convert a CTTIME time into the form hour, minute, second with whole second precision.

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

Declaration

CTDBRET ctdbTimeUnpack(CTTIME Time, pNINT pyear, pNINT pmonth,

pNINT pday)

Description

ctdbTimeUnpack() unpack a CTTIME time into the form day, month and year.

  • Time [in] the packed time.
  • phour [out] the hour.
  • pminute [out] the minute
  • psecond [out] the second

Returns

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

See also

ctdbTimePack(), ctdbTimePackMsec(), ctdbTimeUnpackMsec()

TOCIndex