Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbTDateTimeToString

Convert a double containing a delphi TDateTime value to a string.

Declaration

CTDBRET ctdbDECL ctdbTDateTimeToString(DOUBLE time, CTDATE_TYPE DateType, CTTIME_TYPE TimeType, pTEXT pStr, VRLEN size)

Description

ctdbTDateTimeToString() converts a double containing a delphi TDateTime value to a string.

Parameters:

  • time [IN] - double containing a delphi TDateTime value
  • DateType [IN] - one of the date types
  • TimeType [IN] - one of the time types
  • pStr [out] - pointer to a string buffer to receive the converted date and time
  • size [IN] - size in bytes of the memory area pointed by pStr

Return values

Returns CTDBRET_OK on success.

TOCIndex