This document is archived and information here might be outdated. Recommended version. |
Provides access to members that control the Time Duration.
The ITimeDuration interface is used to deal with time values which are simply a length of time, but not associated with a specific point in time. For example, 3 hours is a TimeDuration since it does not tell you if it represents 1:00-4:00 or 5:00-8:00. If you need to associate the TimeDuration with a specific point on the time line, you should use a TimeExtent.
Name | Description | |
---|---|---|
AddDays | Adds the input amount of days to the time duration. | |
AddDuration | Adds a time duration. | |
AddHours | Adds the input amount of hours to the time duration. | |
AddMilliseconds | Adds the input amount of milliseconds to the time duration. | |
AddMinutes | Adds the input amount of minutes to the time duration. | |
AddNanoseconds | Adds the input amount of nanoseconds to the time duration. | |
AddSeconds | Adds the input amount of seconds to the time duration. | |
AddWeeks | Adds the input amount of weeks to the time duration. | |
Compare | Compares this time duration to the other time duration. Returns -1 if this time duration's value is less, 1 if greater, and 0 otherwise. | |
Days | The time duration days component. | |
Hours | The time duration hours component. | |
IsZero | Indicates whether the time duration's value is zero. | |
Minutes | The time duration minutes component. | |
Nanoseconds | The time duration nanoseconds component. | |
Positive | Indicates whether the time duration value is positive or negative. | |
QueryDayFraction | The time duration day fraction portion as a day fraction. Corresponds to the Hour, Minute, Second, and Nanoseconds properties. | |
QueryDayFractionNanoseconds | The time duration day fraction portion as the number of nanoseconds elapsed since midnight. Corresponds to the Hour, Minute, Second, and Nanoseconds properties. | |
QueryTicks | Obtains the time duration as the number of ticks. | |
QueryTotalDays | Obtains the time duration as total days floating point value. | |
QueryTotalHours | Obtains the time duration as total hours floating point value. | |
QueryTotalMinutes | Obtains the time duration as total minutes floating point value. | |
QueryTotalSeconds | Obtains the time duration as total seconds floating point value. | |
QueryWKSTimeDuration | Obtains time as a WKSTimeDuration. | |
QueryXMLTimeDurationString | Obtains the time duration as an XML time duration string. | |
Reset | Reset the time duration to zero. | |
Scale | Scales the time duration by a scale factor. | |
Seconds | The time duration seconds component. | |
SetDayFraction | The time duration day fraction portion as a day fraction. Corresponds to the Hour, Minute, Second, and Nanoseconds properties. | |
SetDayFractionNanoseconds | The time duration day fraction portion as the number of nanoseconds elapsed since midnight. Corresponds to the Hour, Minute, Second, and Nanoseconds properties. | |
SetFromTicks | Writes the time duration from a given number of ticks. | |
SetFromWKSTimeDuration | Writes the time from a given WKSTimeDuration value. | |
SetFromXMLTimeDurationString | Writes the time duration from an XML time duration string. | |
SubtractDuration | Subtracts a time duration. |
Classes | Description |
---|---|
TimeDuration | An object that represents a time duration value. |