COleDateTimeSpan::GetTotalDays

double GetTotalDays( ) const;

Return Value

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

Remarks

Call this member function to retrieve this date/time-span value expressed in days.

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:

Example

// example for COleDateTimeSpan::GetTotalXxx 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 );

COleDateTimeSpan OverviewClass MembersHierarchy Chart

See Also   COleDateTimeSpan::SetDateTimeSpan, COleDateTimeSpan::operator double