Product Documentation

FairCom DB API for C

Previous Topic

Next Topic

ctdbCurrentDateTime

Retrieve the current system date and time, excluding milliseconds.

Declaration

CTDBRET ctdbCurrentDateTime(pCTDATETIME pDateTime)

Description

ctdbCurrentDateTime() retrieves the current system date and time.

  • pDateTime [out] pointer to a CTDATETIME value to receive the current date and time.

Returns

ctdbCurrentDateTime() returns CTDBRET_OK on success, or FairCom DB API error code on failure.

NOTE: Although CTDATETIME includes milliseconds, this function truncates them to 0. Use ctdbCurrentDateTimeUTC() if you need millisecond support.

See also

ctdbCurrentDate(), ctdbCurrentTime(), ctdbCurrentDateTimeUTC()

TOCIndex