Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbGetYear

Retrieve the year from a packed CTDATE.

Declaration

NINT ctdbGetYear(CTDATE date)

Description

ctdbGetYear() retrieves the year from a packed CTDATE. To retrieve the day of the month from a packed CTDATE, use ctdbGetDay(). To retrieve the month of the year from a packed CTDATE, use ctdbGetMonth().

  • date is the date in CTDATE format.

Returns

ctdbGetYear() returns the day of the month on success or 0 on error.

See also

ctdbGetMonth(), ctdbGetDay()

TOCIndex