COleDateTime::GetAsDBTIMESTAMP
Call this method to obtain the time in the COleDateTime object as a DBTIMESTAMP data structure.
bool GetAsDBTIMESTAMP(
DBTIMESTAMP& dbts
) const throw();
Parameters
- dbts
A reference to a DBTimeStamp structure.
Return Value
Nonzero if successful; otherwise 0.
Remarks
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.
Example
COleDateTime t = COleDateTime::GetCurrentTime();
DBTIMESTAMP ts;
t.GetAsDBTIMESTAMP(ts); // retrieves the time in t into the ts structure
Requirements
Header: atlcomtime.h