friend CDumpContext& AFXAPI operator<<( CDumpContext& dc, CTimeSpan timeSpan );
friend CArchive& AFXAPI operator<<( CArchive& ar, CTimeSpan timeSpan );
friend CArchive& AFXAPI operator>>( CArchive& ar, CTimeSpan& rtimeSpan );
Remarks
The CTimeSpan insertion (<<) operator supports diagnostic dumping and storing to an archive. The extraction (>>) operator supports loading from an archive.
When you send a CTimeSpan object to the dump context, the value is displayed in an alphanumeric format that shows days, hours, minutes, and seconds.
Example
// example for CTimeSpan::operators <<, >>
CTimeSpan ts( 3, 1, 5, 12 ); // 3 days, 1 hour, 5 min, and 12 sec
#ifdef _DEBUG
afxDump << ts << "\n";
#endif
// Prints 'CTimeSpan(3 days, 1 hours, 5 minutes and 12 seconds)'
extern CArchive ar;
if( ar.IsLoading( ))
ar >> ts;
else
ar << ts;