Product Documentation

FairCom DB API for C

Previous Topic

Next Topic

ctdbStringToTDateTime

Convert a date and time in a string ot a double containing a delphi TDateTime value.

Declaration

CTDBRET ctdbDECL ctdbStringToTDateTime(cpTEXT pStr, DOUBLE* tdatetime, CTDATE_TYPE DateType, CTTIME_TYPE TimeType)

Description

ctdbStringToTDateTime() converts a date and time in a string to a double containing a delphi TDateTime value.

Parameters:

  • pStr [IN] - string containing the date and time
  • unixtime [OUT] - pointer to a time_t type value to receive the converted string date and time
  • DateType [IN] - one of the date types
  • TimeType [IN] - one of the time types

Return values

Returns CTDBRET_OK on success.

TOCIndex