Udostępnij za pośrednictwem


CTime::GetYear

Returns the year represented by the CTime object.

int GetYear( );

Return Value

Returns the year, based on local time, in the range January 1,1970, to January 18, 2038 (inclusive).

Remarks

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.

Example

See the example for GetDay.

Requirements

Header: atltime.h

See Also

Reference

CTime Class

Hierarchy Chart

CTime::CTime

Other Resources

CTime Members