CTime::GetDay

返回日 CTime 由对象表示。

int GetDay( ) const throw( );

返回值

根据当地时间返回日,在1到31之间。

备注

此函数调用 GetLocalTm,使用内部,静态分配的缓冲区。 此缓冲区中的数据复盖由于调用其他 CTime 成员函数。

示例

// Example for CTime::GetDay, CTime::GetMonth, and CTime::GetYear
CTime t(1999, 3, 19, 22, 15, 0); // 10:15 PM March 19, 1999
ATLASSERT(t.GetDay() == 19);
ATLASSERT(t.GetMonth() == 3);
ATLASSERT(t.GetYear() == 1999);

要求

Header: atltime.h

请参见

参考

CTime Class

层次结构图

CTime::GetDayOfWeek