Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbTimePack

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

NOTE: "See ctdbTimePackMsec() if you need millisecond precision.

Declaration

CTDBRET ctdbTimePack(pCTTIME pTime, NINT hour, NINT minute,

NINT second)

Description

ctdbTimePack() pack a time in the form hour:minute:second into a CTTIME form.

  • pTime [out] the packed time.
  • hour [in] the hour.
  • minute [in] the minute.
  • second [in] the second

Returns

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

See also

ctdbTimeUnpack(), ctdbDateTimePack(), ctdbTimePackMsec(), ctdbTimeUnpackMsec()

TOCIndex