Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbCurrentTime

Retrieve the current system time with whole second precision.

Declaration

CTDBRET ctdbCurrentTime(pCTTIME pTime)

Description

ctdbCurrentTime() retrieves the current system time. ctdbCurrentDateTime() retrieves the current date and time.

  • pTime [out] pointer to a CTTIME value to receive the current time.

NOTE: See CTTIMEMS if you need millisecond precision.

Returns

ctdbCurrentTime() returns CTDBRET_OK on success, or c-treeDB API error code on failure.

See also

ctdbCurrentDate(), ctdbCurrentDateTime()

TOCIndex