Condividi tramite


COleDateTime::GetDayOfYear

Gets the day of the year represented by this date/time value.

int GetDayOfYear( ) const throw( );

Return Value

The day of the year represented by the value of this COleDateTime object or COleDateTime::error if the day of the year could not be obtained.

Remarks

Valid return values range between 1 and 366, where January 1 = 1.

For information on other member functions that query the value of this COleDateTime object, see the following member functions:

Example

COleDateTime t(1999, 3, 19, 22, 15, 0); // 10:15PM March 19, 1999
ASSERT(t.GetDayOfYear() == 78);         // 78th day of that year   

Requirements

Header: atlcomtime.h

See Also

Concepts

COleDateTime Class

COleDateTime Members

Hierarchy Chart

COleDateTime::COleDateTime

COleDateTime::SetDateTime

COleDateTime::operator =

COleDateTime::GetStatus