Product Documentation

FairCom DB API for C

Previous Topic

Next Topic

ctdbUnixTimeToDateTime

Converts a unix time epoch (time_t) into a CTDATETIME type value.

Declaration

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

Description

ctdbUnixTimeToDateTime() converts a unix time_t value 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