COleDateTimeSpan( );
COleDateTimeSpan( const COleDateTimeSpan& dateSpanSrc );
COleDateTimeSpan( double dblSpanSrc );
COleDateTimeSpan( long lDays, int nHours, int nMins, int nSecs );
Parameters
dateSpanSrc
An existing COleDateTimeSpan object to be copied into the new COleDateTimeSpan object.
dblSpanSrc
The number of days to be copied into the new COleDateTimeSpan object.
lDays, nHours, nMins, nSecs
Indicate the day and time values to be copied into the new COleDateTimeSpan object.
Remarks
All of these constructors create new COleDateTimeSpan objects initialized to the specified value. A brief description of each of these constructors follows:
The status of the new COleDateTimeSpan object is set to valid.
For more information about the bounds for COleDateTimeSpan values, see the article Date and Time: Automation Support in Visual C++ Programmer’s Guide.
Example
COleDateTimeSpan spanOne( 2.75 ); // 2 days and 18 hours
COleDateTimeSpan spanTwo( 2, 18, 0, 0 ); // 2 days and 18 hours
COleDateTimeSpan spanThree( 3, -6, 0, 0 ); // 2 days and 18 hours
COleDateTimeSpan Overview | Class Members | Hierarchy Chart
See Also COleDateTimeSpan::operator =, COleDateTimeSpan::GetStatus, COleDateTimeSpan::m_span, COleDateTimeSpan::m_status