共用方式為


COleDateTimeSpan Class

Represents a relative time, a time span.

class COleDateTimeSpan

Remarks

COleDateTimeSpan does not have a base class.

A COleDateTimeSpan keeps time in days.

COleDateTimeSpan is used with its companion class COleDateTime. COleDateTime encapsulates the DATE data type of OLE automation. COleDateTime represents absolute time values. All COleDateTime calculations involve COleDateTimeSpan values. The relation between these classes is analogous to the one between CTime and CTimeSpan.

For more information on the COleDateTime and COleDateTimeSpan classes, see the article Date and Time: Automation Support.

Requirements

Header: ATLComTime.h

See Also

Concepts

COleDateTimeSpan Members

COleDateTime Class

Hierarchy Chart

ATL/MFC Shared Classes