Partilhar via


CTime::GetMonth

Returns the month represented by the CTime object.

int GetMonth( ) const throw( );

Return Value

Returns the month, based on local time, in the range 1 through 12 (1 = January).

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

Other Resources

CTime Members