CTimeSpan 연산자 + ( CTimeSpan timeSpan ) const;
CTimeSpan 연산자 -( CTimeSpan timeSpan ) const;
주의
이러한 두 가지 연산자를 사용 하면 추가 하 고 서로 CTimeSpan 개체를 빼기。
예제
/ / 예 CTimeSpan::operator +,-
CTimeSpan ts1 (3, 1, 5, 12); / / 3 일, 1 시간, 5 분, 및 12 초
CTimeSpan ts2 (100); / / 100 초
CTimeSpan ts3 = ts1 + ts2;
ASSERT (ts3.GetSeconds() = 52); / / 6 분 52 초
CTimespan 개요 |nbsp; 클래스 멤버 (ko) | 계층 구조 차트(&N)