COleDateTimeSpan::GetHours

long GetHours( ) const;

Return Value

The hours portion of this date/time-span value.

Remarks

Call this member function to retrieve the hour portion of this date/time-span value.

The return values from this function range between  – 23 and 23.

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

Example

COleDateTimeSpan ts( 3, 1, 5, 12 ); // 3 days, 1 hour, 5 min, and 12 sec
ASSERT( ts.GetHours() == 1 );

COleDateTimeSpan OverviewClass MembersHierarchy Chart

See Also   COleDateTimeSpan::SetDateTimeSpan