Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbDateTimePack

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

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

Declaration

CTDBRET ctdbDateTimePack(pCTDATETIME pDateTime, NINT year, NINT

month, NINT day, NINT hour, NINT minute, NINT second)

Description

ctdbDateTimePack() pack a date and time value in the form day, month, year, hour, minute, second into a CTDATETIME form.

  • pDateTime [out] the packed date and time value.
  • year [in] the year.
  • month [in] the month.
  • day [in] the day.
  • hour [in] the hour.
  • minute [in] the minute.
  • second [in] the second.

Returns

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

See also

ctdbDateTimeUnpack(), ctdbDateTimePackMsec(), ctdbDateTimeUnpackMsec()

TOCIndex