Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbUnixTimeToDateTime

Converts a unixtime into a CTDATETIME type value.

Declaration

CTDBRET ctdbDECL ctdbUnixTimeToDateTime(time_t time, pCTDATETIME pDateTime, CTBOOL tolocaltime)

Description

ctdbUnixTimeToDateTime() converts a unixtime into a CTDATETIME type value.

Parameters:

  • time [IN] time_t
  • pDateTime [OUT] - CTDATETIME value
  • tolocaltime [IN] convert to localtime before packing

Return Values

Returns: Return CTDBRET_OK on success


TOCIndex