COleDateTime::GetAsDBTIMESTAMP
Call this method to obtain the time in the COleDateTime object as a DBTIMESTAMP data structure.
bool GetAsDBTIMESTAMP(
DBTIMESTAMP& dbts
) const throw();
Параметры
- dbts
A reference to a DBTimeStamp structure.
Возвращаемое значение
Nonzero if successful; otherwise 0.
Заметки
Stores the resulting time in the referenced dbts structure. The DBTIMESTAMP data structure initialized by this function will have its fraction member set to zero.
Пример
COleDateTime t = COleDateTime::GetCurrentTime();
DBTIMESTAMP ts;
t.GetAsDBTIMESTAMP(ts); // retrieves the time in t into the ts structure
Требования
Header: atlcomtime.h