Product Documentation

FairCom DB API for C

Previous Topic

Next Topic

ctdbTimeUnpackMsec

Convert a CTTIMEMS into hour, minute, second, and millisecond.

NOTE: See ctdbTimeUnpack() if you don't need millisecond precision.

Declaration

CTDBRET ctdbDECL ctdbTimeUnpackMsec(CTTIMEMS Time, pNINT phour, pNINT pminute, pNINT psecond, pNINT pmillisec)

Parameters:

  • Time [IN] - Packed CTTIMEMS
  • hour [OUT]
  • minute [OUT]
  • second [OUT]
  • millisec [OUT]

Description

ctdbTimeUnpackMsec() unpacks a CTTIMEMS into hour, minute, second, and millisecond values.

Return Values

Value

Symbolic Constant

Explanation

0

CTDBRET_OK

Successful operation.

See c-tree Plus Error Codes for a complete listing of valid c-tree Plus error values.

See Also

ctdbGetFieldAsTimeMsec, ctdbSetFieldAsTimeMsec, ctdbTimePackMsec, ctdbTimePack(), ctdbTimeUnpack(), ctdbDateTimeSetTimeMsec, ctdbDateTimeGetTimeMsec, ctdbDateTimePackMsec, ctdbDateTimeUnpackMsec

TOCIndex