Export (0) Print
Expand All

CTime::GetYear

Returns the year represented by the CTime object.

int GetYear( );

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 because of calls to other CTime member functions.

See the example for GetDay.

Header: atltime.h

Community Additions

ADD
Show:
© 2015 Microsoft