Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbSetDefTimeType

Set the default time type.

Declaration

CTDBRET ctdbSetDefTimeType(CTHANDLE Handle, CTTIME_TYPE TimeType)

Description

ctdbSetDefTimeType() sets the default time type for the present session. Initially, the default is CTTIME_HMP, indicating hour, minute and am/pm. The possible date types are given in the Time Type Formats table in Time Types. Use ctdbGetDefTimeType() to retrieve the default time type.

  • Handle [in] any c-treeDB API Handle.
  • TimeType [in] a valid time type. Valid types are listed in the Time Type Formats table in Time Types.

Returns

ctdbSetDefTimeType() returns CTDBRET_OK on success, or c-treeDB API C API error on failure.

See also

ctdbGetDefTimeType()

TOCIndex