CTime::GetYear

Call this member function to retrieve the year, based on local time, in the range 1970 to 2038. 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.

Syntax

int GetYear( ) const;

At a Glance

Header File Afxwin.h
Platforms
Versions 1.0 and later
Complete documentation Visual C++ documentation

See Also

CTime Overview, CTime Member Functions, Simple Value Types, CTime::CTime