Поделиться через


COleDateTime::GetAsDBTIMESTAMP

Call this method to obtain the time in the COleDateTime object as a DBTIMESTAMP data structure.

bool GetAsDBTIMESTAMP(
      DBTIMESTAMP& dbts
) const throw();

Параметры

Возвращаемое значение

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

См. также

Основные понятия

COleDateTime Class

COleDateTime Members

Hierarchy Chart