Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CTime::operator =
CTime                                       Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  const CTime& operator =( const CTime& timeSrc );
  const CTime& operator =( time_t  t );
 
  Remarks
 
  These overloaded assignment operators copy the source time into this
  CTime object.
 
  The internal time storage in a CTime object is independent of time zone.
  Time-zone conversion is not necessary during assignment.
 
  Example
 
  time_t osBinaryTime;  // C run-time time (defined in <time.h>)
  CTime t1 = osBinaryTime; // assignment from time_t
  CTime t2 = t1; // assignment from CTime
 
 
  See Also
 
  CTime::CTime
 
 
                                     -♦-