The UsTimeSpan type exposes the following members.
Methods
Name | Description | |
---|---|---|
Add |
Gets the sum of this and the given timeSpan.
| |
CompareTo(Object) |
Compares this instance to a specified object and returns an integer
that indicates whether this instance is shorter than, equal to, or
longer than the specified object.
| |
CompareTo(UsTimeSpan) |
Compares this instance to a specified object and returns an integer
that indicates whether this instance is shorter than, equal to, or
longer than the specified object.
| |
Duration |
Gets new UsTimeSpan whose value is the absolute value of this
object.
| |
Equals(Object) |
Returns a value indicating whether this instance is equal to the given
obj.
(Overrides ValueTypeEquals(Object).) | |
Equals(UsTimeSpan) |
Returns a value indicating whether this instance is equal to given
other object.
| |
FromDays |
Returns UsTimeSpan that represents a specified number of
days.
| |
FromHours |
Returns UsTimeSpan that represents a specified number of
hours.
| |
FromMicroseconds |
Returns UsTimeSpan that represents a specified number of
microseconds.
| |
FromMilliseconds |
Returns UsTimeSpan that represents a specified number of
milliseconds.
| |
FromMinutes |
Returns UsTimeSpan that represents a specified number of
minutes.
| |
FromSeconds |
Returns UsTimeSpan that represents a specified number of
seconds.
| |
FromTicks |
Returns UsTimeSpan that represents a specified number of
ticks.
| |
GetHashCode |
Returns a hash code for this instance.
(Overrides ValueTypeGetHashCode.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Negate |
Gets the same value of this object with a changed sign.
| |
Subtract |
Gets the difference of this and the given timeSpan.
| |
ToString |
Returns the string representation of the value of this instance.
(Overrides ValueTypeToString.) |
See Also