Product Documentation

FairCom DB 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 FairCom DB API error code on failure.

See also

ctdbCurrentDate(), ctdbCurrentDateTime()

TOCIndex