Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbDateTimeToUnixTime

Convert a CTDATETIME type value into a time_t unixtime value.

Declaration

CTDBRET ctdbDECL ctdbDateTimeToUnixTime(CTDATETIME DateTime, time_t* time, CTBOOL fromlocaltime)

Description

ctdbDateTimeToUnixTime() convert a CTDATETIME type value into a time_t unixtime value.

Parameters:

  • DateTime [IN] - CTDATETIME value
  • time[OUT] - time_t
  • fromlocaltime [IN] - convert from localtime

Return Values

Return CTDBRET_OK on success

TOCIndex