COleDateTimeSpan Class
Represents a relative time, a time span.
class COleDateTimeSpan
Members
Public Constructors
Name |
Description |
---|---|
Constructs a COleDateTimeSpan object. |
Public Methods
Name |
Description |
---|---|
Generates a formatted string representation of a COleDateTimeSpan object. |
|
Returns the day portion of the span this COleDateTimeSpan object represents. |
|
Returns the hour portion of the span this COleDateTimeSpan object represents. |
|
Returns the minute portion of the span this COleDateTimeSpan object represents. |
|
Returns the second portion of the span this COleDateTimeSpan object represents. |
|
Gets the status (validity) of this COleDateTimeSpan object. |
|
Returns the number of days this COleDateTimeSpan object represents. |
|
Returns the number of hours this COleDateTimeSpan object represents. |
|
Returns the number of minutes this COleDateTimeSpan object represents. |
|
Returns the number of seconds this COleDateTimeSpan object represents. |
|
Sets the value of this COleDateTimeSpan object. |
|
Sets the status (validity) of this COleDateTimeSpan object. |
Public Operators
Add, subtract, and change sign for COleDateTimeSpan values. |
|
Add and subtract a COleDateTimeSpan value from this COleDateTimeSpan value. |
|
Copies a COleDateTimeSpan value. |
|
Compare two COleDateTimeSpan values. |
|
Converts this COleDateTimeSpan value to a double. |
Public Data Members
Name |
Description |
---|---|
Contains the underlying double for this COleDateTimeSpan object. |
|
Contains the status of this COleDateTimeSpan object. |
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