Use these constructors to construct a COleDateTime object.
The default constructor initializes it to zero (midnight, 30 December 1899).
Use the copy constructor to construct a COleDateTime object from an existing COleDateTime object.
Use COleDateTime( varSrc ) to convert a VARIANT structure or COleVariant object to a date/time (VT_DATE) value. If this conversion is successful, the converted value is copied into the new COleDateTime object. If not, it behaves like the default constructor.
Use COleDateTime( nYear, nMonth, nDay, nHour, nMin, nSec ) to construct a COleDateTime object from the specified numerical values.
Use the other constructors to construct a COleDateTime object from a DATE, a time_t, a SYSTEMTIME, a FILETIME, or MS-DOS date and time values, respectively
COleDateTime( );
COleDateTime( const COleDateTime& dateSrc );
COleDateTime( const VARIANT& varSrc );
COleDateTime( DATE dtSrc );
COleDateTime( time_t timeSrc );
COleDateTime( const SYSTEMTIME& systimeSrc );
COleDateTime( const FILETIME& filetimeSrc );
COleDateTime( int nYear, int nMonth, int nDay, int nHour, int nMin, int nSec );
COleDateTime( WORD wDosDate, WORD wDosTime );
Header file: | Afxdisp.h |
Platforms: | |
Versions: | 2.0 and later |
Complete documentation: | Visual C++ documentation |
COleDateTime Overview, COleDateTime Member Functions, Automation Types, COleDateTime::SetDate, COleDateTime::SetDateTime, COleDateTime::SetTime, COleDateTime::GetStatus, COleDateTime::operator =, COleDateTime::m_dt, COleDateTime::m_status, COleVariant, DATE, FILETIME, SYSTEMTIME, VARIANT