friend CDumpContext& AFXAPI operator<<( CDumpContext& dc, COleDateTimeSpan dateSpan );
friend CArchive& AFXAPI operator<<( CArchive& ar, COleDateTimeSpan dateSpan );
friend CArchive& AFXAPI operator>>( CArchive& ar, COleDateTimeSpan& dateSpan );
Remarks
The COleDateTimeSpan insertion (<<) operator supports diagnostic dumping and storing to an archive. The extraction (>>) operator supports loading from an archive.
Example
COleDateTimeSpan ts( 3, 1, 5, 12 ); // 3 days, 1 hour, 5 min, and 12 sec
#ifdef _DEBUG
afxDump << ts << "\n";
// Prints 'COleDateTimeSpan(3 days, 1 hours, 5 minutes and 12 seconds)'
#endif
extern CArchive ar;
if( ar.IsLoading( ))
ar >> ts;
else
ar << ts;
COleDateTimeSpan Overview | Class Members | Hierarchy Chart
See Also CDumpContext, CArchive