Поделиться через


COleDateTimeSpan::GetTotalDays

Retrieves this date/time-span value expressed in days.

double GetTotalDays( ) const throw( );

Возвращаемое значение

This date/time-span value expressed in days. Although this function is prototyped to return a double, it will always return an integer value.

Заметки

The return values from this function range between approximately – 3.65e6 and 3.65e6.

For other functions that query the value of a COleDateTimeSpan object, see the following member functions:

Пример

COleDateTimeSpan ts(3, 1, 5, 12); // 3 days, 1 hour, 5 min, and 12 sec
ASSERT(ts.GetTotalDays() == 3);
ASSERT(ts.GetTotalHours() == 73);
ASSERT(ts.GetTotalMinutes() == 4385);
ASSERT(ts.GetTotalSeconds() == 263112);   

Требования

Header: atlcomtime.h

См. также

Основные понятия

COleDateTimeSpan Class

COleDateTimeSpan Members

Hierarchy Chart

COleDateTimeSpan::SetDateTimeSpan

COleDateTimeSpan::operator double