Product Documentation

FairCom DB API for C

Previous Topic

Next Topic

ctdbDatePack

Pack a date in the form day, month and year into a CTDATE form.

Declaration

CTDBRET ctdbDatePack(pCTDATE pDate, NINT year, NINT month, NINT day)

Description

ctdbDatePack() pack a date in the form day, month and year into a CTDATE form.

  • pDate [out] the packed date.
  • year [in] the year, and it is supposed to be ≥ 0.
  • month [in] the month, and it supposed to be in the range 1 ≤ month ≤ 12.
  • day [in] the day, and it supposed to be in the range 1 ≤ day ≤ 28, or 29, or 30, or 31, depending on the month and year.

Returns

ctdbDatePack() returns CTDBRET_OK on success, or FairCom DB API error on failure.

See also

ctdbDateUnpack(), ctdbDateTimePack()

TOCIndex