COleDateTimeSpan::SetDateTimeSpan

void SetDateTimeSpan( long lDays, int nHours, int nMins, int nSecs );

Parameters

lDays, nHours, nMins, nSecs

Indicate the date-span and time-span values to be copied into this COleDateTimeSpan object.

Remarks

Call this member function to set the value of this date/time-span value.

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

Example

COleDateTimeSpan spanOne;
COleDateTimeSpan spanTwo;
spanOne.SetDateTimeSpan(0, 2, 45, 0);  // 2 hours and 45 seconds
spanTwo.SetDateTimeSpan(0, 3, -15, 0); // 2 hours and 45 seconds

COleDateTimeSpan OverviewClass MembersHierarchy Chart

See Also   COleDateTimeSpan::GetStatus, COleDateTimeSpan::m_span