CTime::operator =

Syntax

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 constructors