COleDateTimeSpan Members

Constructor

COleDateTimeSpan

Constructs a COleDateTimeSpan object.

Attributes

GetDays

Returns the day portion of the span this COleDateTimeSpan object represents.

GetHours

Returns the hour portion of the span this COleDateTimeSpan object represents.

GetMinutes

Returns the minute portion of the span this COleDateTimeSpan object represents.

GetSeconds

Returns the second portion of the span this COleDateTimeSpan object represents.

GetStatus

Gets the status (validity) of this COleDateTimeSpan object.

GetTotalDays

Returns the number of days this COleDateTimeSpan object represents.

GetTotalHours

Returns the number of hours this COleDateTimeSpan object represents.

GetTotalMinutes

Returns the number of minutes this COleDateTimeSpan object represents.

GetTotalSeconds

Returns the number of seconds this COleDateTimeSpan object represents.

SetStatus

Sets the status (validity) of this COleDateTimeSpan object.

Operations

Format

Generates a formatted string representation of a COleDateTimeSpan object.

SetDateTimeSpan

Sets the value of this COleDateTimeSpan object.

Operators

operator +, -

Add, subtract, and change sign for COleDateTimeSpan values.

operator +=, -=

Add and subtract a COleDateTimeSpan value from this COleDateTimeSpan value.

operator =

Copies a COleDateTimeSpan value.

operator ==, <, <=

Compare two COleDateTimeSpan values.

operator double

Converts this COleDateTimeSpan value to a double.

Data Members

m_span

Contains the underlying double for this COleDateTimeSpan object.

m_status

Contains the status of this COleDateTimeSpan object.

See Also

Reference

COleDateTimeSpan Class

Hierarchy Chart