Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbDateTimeUnpackMsec

Convert a date and time in CTDATETIME form into the form day, month, year, hour, minute, second, millisecond.

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

Declaration

CTDBRET ctdbDECL ctdbDateTimeUnpackMsec(CTDATETIME DateTime, pNINT pYear, pNINT pMonth, pNINT pDay, pNINT pHour, pNINT pMinute, pNINT pSecond, pNINT pMillisec)

Parameters:

  • DateTime [IN] - Packed CTDATETIME type value
  • pYear [OUT]
  • pMonth [OUT]
  • pDay [OUT]
  • pHour [OUT]
  • pMinute [OUT]
  • pSecond [OUT]
  • pMillisec [OUT]

Description

ctdbDateTimeUnpackMsec() unpacks a CTDATETIME type value with millisecond precision.

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, ctdbTimeUnpackMsec, ctdbDateTimeSetTimeMsec, ctdbDateTimeGetTimeMsec, ctdbDateTimePackMsec, ctdbDateTimeUnpack, ctdbDateTimePack

TOCIndex