TimeSpan Methods |
The TimeSpan type exposes the following members.
Name | Description | |
---|---|---|
Equals(Object) | Returns a value indicating whether this instance is equal to a specified object. (Overrides ValueTypeEquals(Object).) | |
Equals(TimeSpan) | Returns a value indicating whether this instance is equal to a specified TimeSpan object. | |
Equals(TimeSpan, TimeSpan) | Returns a value that indicates whether two specified instances of TimeSpan are equal. | |
FromDays | Returns a TimeSpan that represents a specified number of days, where the specification is accurate to the nearest millisecond. | |
FromHours | Returns a TimeSpan that represents a specified number of hours, where the specification is accurate to the nearest millisecond. | |
FromMilliseconds | Returns a TimeSpan that represents a specified number of milliseconds. | |
FromMinutes | Returns a TimeSpan that represents a specified number of minutes, where the specification is accurate to the nearest millisecond. | |
FromSeconds | Returns a TimeSpan that represents a specified number of seconds, where the specification is accurate to the nearest millisecond. | |
FromTicks | Returns a TimeSpan that represents a specified time, where the specification is in units of ticks. | |
GetHashCode | Returns a hash code for this instance. (Overrides ValueTypeGetHashCode.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Parse(String) | Converts the string representation of a time interval to its TimeSpan equivalent. | |
Parse(String, IFormatProvider) | Converts the string representation of a time interval to its TimeSpan equivalent by using the specified culture-specific format information. | |
ToString | Converts the value of the current TimeSpan object to its equivalent string representation. (Overrides ValueTypeToString.) | |
ToString(String) | Converts the value of the current TimeSpan object to its equivalent string representation by using the specified format. | |
ToString(String, IFormatProvider) | Converts the value of the current TimeSpan object to its equivalent string representation by using the specified format and culture-specific formatting information. |