다음을 통해 공유


COleDateTime::GetAsDBTIMESTAMP

시간을 가져오려면이 메서드를 호출 하는 COleDateTime 으로 개체는 DBTIMESTAMP 데이터 구조입니다.

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

매개 변수

반환 값

성공 하면 0이 아닌. 그렇지 않으면 0입니다.

설명

결과 시간 참조에 저장 dbts 구조.DBTIMESTAMP 이 함수에서 초기화 된 데이터 구조를 갖게 그 분수 멤버를 0으로 설정 합니다.

예제

COleDateTime t = COleDateTime::GetCurrentTime();
DBTIMESTAMP ts;
t.GetAsDBTIMESTAMP(ts); // retrieves the time in t into the ts structure

요구 사항

헤더: atlcomtime.h

참고 항목

참조

COleDateTime 클래스

계층 구조 차트