CTime::GetYear

int GetYear( ) const;

Remarks

Returns the year, based on local time, in the range January 1,1970 to January 18, 2038 (inclusive). This function calls GetLocalTm, which uses an internal, statically allocated buffer. The data in this buffer is overwritten as a result of calls to other CTime member functions.

Example

See the example for GetDay.

CTime OverviewClass MembersHierarchy Chart

See Also   CTime::CTime