Duration Methods |
The Duration type exposes the following members.
Name | Description | |
---|---|---|
Add |
Adds the specified Duration to this instance.
| |
AddDays | ||
AddSeconds | ||
CompareTo(Duration) |
Compares this instance with another instance of the same type.
| |
CompareTo(Object) |
Compares this instance with another instance of the same type.
| |
Divide(Double) |
Divides the Duration by a constant.
| |
Divide(Duration) | ||
Equals(Duration) | ||
Equals(Object) |
Returns if this Duration exactly equals another Duration, within the limits
of floating point precision. To be considered equal, the Days
and Standard properties must be identical (or one must be null) and the
difference between the Seconds properties must be less than 1.0e-10.
(Overrides ValueTypeEquals(Object).) | |
EqualsEpsilon | ||
FromDays(Double) |
Returns a Duration that represents the specified number of days.
| |
FromDays(Double, TimeStandard) |
Returns a Duration that represents the specified number of days
using the specified time standard.
| |
FromHours(Double) |
Returns a Duration that represents the specified number of hours.
| |
FromHours(Double, TimeStandard) |
Returns a Duration that represents the specified number of hours using the
specified time standard.
| |
FromMinutes(Double) |
Returns a Duration that represents the specified number of minutes.
| |
FromMinutes(Double, TimeStandard) |
Returns a Duration that represents the specified number of minutes using the
specified time standard.
| |
FromSeconds(Double) |
Returns a Duration that represents the specified number of seconds.
| |
FromSeconds(Double, TimeStandard) |
Returns a Duration that represents the specified number of seconds using the
specified time standard.
| |
GetHashCode |
Returns a hash code for this instance, which is suitable for use in hashing algorithms and data structures like a hash table.
(Overrides ValueTypeGetHashCode.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
HoursMinutesSecondsToSeconds |
Converts the specified number of hours, minutes, and seconds to total duration in seconds.
| |
Multiply |
Multiplies the Duration by a constant.
| |
Subtract |
Subtracts the specified Duration from this instance.
| |
ToString | (Overrides ValueTypeToString.) | |
ToTimeSpan |