Product Documentation

FairCom DB API for C

Previous Topic

Next Topic

ctdbStringToUnixTime

Convert a date and time in a string to a packed CTDATETIME type value

Declaration

CTDBRET ctdbDECL ctdbStringToUnixTime(cpTEXT pStr, time_t* unixtime, CTDATE_TYPE DateType, CTTIME_TYPE TimeType)

Description

ctdbStringToUnixTime() converts a date and time in a string to a packed CTDATETIME type value

Parameters:

  • pStr [IN] - String containint the date and time
  • unixtime [OUT] - Pointer to a time_t type value to received the converted string date and time
  • DateType [IN] - One of the date types
  • TimeType [IN] - One of the time types

Return Values

Return CTDBRET_OK on success

TOCIndex