Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbUnixTimeToString

Convert a Unix time_t type value to string

Declaration

CTDBRET ctdbDECL ctdbUnixTimeToString(time_t time, CTDATE_TYPE DateType, CTTIME_TYPE TimeType, pTEXT pStr, VRLEN size)

Description

ctdbUnixTimeToString() converts a Unix time_t type value to string

Parameters:

  • time [IN] - Unix time_t type value.
  • DateType [IN] - One of the the date types.
  • TimeType [IN] - One of the time types.
  • pStr [OUT] - Pointer to a string buffer to received the converted date and time.
  • size [IN] - size in bytes of the memory area pointed by pStr.

Return Values

Return CTDBRET_OK on success

TOCIndex