COleDateTime::operator =
const COleDateTime& operator =( const COleDateTime& dateSrc );
const COleDateTime& operator =( const VARIANT& varSrc );
const COleDateTime& operator =( DATE dtSrc );
const COleDateTime& operator =( const time_t& timeSrc );
const COleDateTime& operator =( const SYSTEMTIME& systimeSrc );
const COleDateTime& operator =( const FILETIME& filetimeSrc );
Remarks
These overloaded assignment operators copy the source date/time value into this COleDateTime object. A brief description of each these overloaded assignment operators follows:
operator =( dateSrc ) The value and status of the operand are copied into this COleDateTime object.
operator =( varSrc ) If the conversion of the value (or COleVariant object) to a date/time (VT_DATE) is successful, the converted value is copied into this COleDateTime object and its status is set to valid. If the conversion is not successful, the value of this object is set to zero (30 December 1899, midnight) and its status to invalid.
operator =(dtSrc) The DATE value is copied into this COleDateTime object and its status is set to valid.
operator =(timeSrc) The time_t value is converted and copied into this COleDateTime object. If the conversion is successful, the status of this object is set to valid; if unsuccessful, it is set to invalid.
operator =(systimeSrc) The value is converted and copied into this COleDateTime object. If the conversion is successful, the status of this object is set to valid; if unsuccessful, it is set to invalid.
operator =(filetimeSrc) The value is converted and copied into this COleDateTime object. If the conversion is successful, the status of this object is set to valid; if unsuccessful, it is set to invalid.
For more information, see the entry in the Win32 SDK OLE Programmer's Reference.
For more information on the time_t data type, see the function in the Run-Time Library Reference.
For more information, see the and structures in the Win32 SDK documentation.
For more information about the bounds for COleDateTime values, see the article in Visual C++ Programmer’s Guide.
COleDateTime Overview | Class Members | Hierarchy Chart
See Also COleDateTime::COleDateTime, COleDateTime::SetDateTime, COleDateTime::GetStatus