Product Documentation

FairCom DB API for C

Previous Topic

Next Topic

ctdbDateTimePackMsec

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

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

Declaration

CTDBRET ctdbDECL ctdbDateTimePackMsec(pCTDATETIME pDateTime, NINT year, NINT month, NINT day, NINT hour, NINT minute, NINT second, NINT millisec)

Parameters:

  • pDateTime [OUT] - Packed CTDATETIME value
  • year [IN]
  • month [IN]
  • day [IN]
  • hour [IN]
  • minute [IN]
  • second [IN]
  • millisecond [IN]

Description

ctdbDateTimePackMsec() packs 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, ctdbDateTimeUnpackMsec, ctdbDateTimePack ,ctdbDateTimeUnpack

TOCIndex