TimeSpan Methods
Assembly: mscorlib (in mscorlib.dll)
| Name | Description | |
|---|---|---|
![]() | Add(TimeSpan) | |
![]() ![]() | Compare(TimeSpan, TimeSpan) | Compares two TimeSpan values and returns an integer that indicates whether the first value is shorter than, equal to, or longer than the second value. |
![]() | 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(TimeSpan) | |
![]() | Duration() | |
![]() | Equals(Object) | Returns a value indicating whether this instance is equal to a specified object.(Overrides ValueType.Equals(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(Double) | Returns a TimeSpan that represents a specified number of days, where the specification is accurate to the nearest millisecond. |
![]() ![]() | FromHours(Double) | Returns a TimeSpan that represents a specified number of hours, where the specification is accurate to the nearest millisecond. |
![]() ![]() | FromMilliseconds(Double) | Returns a TimeSpan that represents a specified number of milliseconds. |
![]() ![]() | FromMinutes(Double) | Returns a TimeSpan that represents a specified number of minutes, where the specification is accurate to the nearest millisecond. |
![]() ![]() | FromSeconds(Double) | Returns a TimeSpan that represents a specified number of seconds, where the specification is accurate to the nearest millisecond. |
![]() ![]() | FromTicks(Int64) | 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 ValueType.GetHashCode().) |
![]() | GetType() | |
![]() | Negate() | Returns a new TimeSpan object whose value is the negated value of this instance. |
![]() ![]() | 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. |
![]() ![]() | ParseExact(String, String, IFormatProvider) | Converts the string representation of a time interval to its TimeSpan equivalent by using the specified format and culture-specific format information. The format of the string representation must match the specified format exactly. |
![]() ![]() | ParseExact(String, String, IFormatProvider, TimeSpanStyles) | Converts the string representation of a time interval to its TimeSpan equivalent by using the specified format, culture-specific format information, and styles. The format of the string representation must match the specified format exactly. |
![]() ![]() | ParseExact(String, String[], IFormatProvider) | Converts the string representation of a time interval to its TimeSpan equivalent by using the specified array of format strings and culture-specific format information. The format of the string representation must match one of the specified formats exactly. |
![]() ![]() | ParseExact(String, String[], IFormatProvider, TimeSpanStyles) | Converts the string representation of a time interval to its TimeSpan equivalent by using the specified formats, culture-specific format information, and styles. The format of the string representation must match one of the specified formats exactly. |
![]() | Subtract(TimeSpan) | |
![]() | ToString() | Converts the value of the current TimeSpan object to its equivalent string representation.(Overrides ValueType.ToString().) |
![]() | 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. |
![]() ![]() | TryParse(String, IFormatProvider, TimeSpan) | Converts the string representation of a time interval to its TimeSpan equivalent by using the specified culture-specific formatting information, and returns a value that indicates whether the conversion succeeded. |
![]() ![]() | TryParse(String, TimeSpan) | Converts the string representation of a time interval to its TimeSpan equivalent and returns a value that indicates whether the conversion succeeded. |
![]() ![]() | TryParseExact(String, String, IFormatProvider, TimeSpan) | Converts the string representation of a time interval to its TimeSpan equivalent by using the specified format and culture-specific format information, and returns a value that indicates whether the conversion succeeded. The format of the string representation must match the specified format exactly. |
![]() ![]() | TryParseExact(String, String, IFormatProvider, TimeSpanStyles, TimeSpan) | Converts the string representation of a time interval to its TimeSpan equivalent by using the specified format, culture-specific format information, and styles, and returns a value that indicates whether the conversion succeeded. The format of the string representation must match the specified format exactly. |
![]() ![]() | TryParseExact(String, String[], IFormatProvider, TimeSpan) | Converts the specified string representation of a time interval to its TimeSpan equivalent by using the specified formats and culture-specific format information, and returns a value that indicates whether the conversion succeeded. The format of the string representation must match one of the specified formats exactly. |
![]() ![]() | TryParseExact(String, String[], IFormatProvider, TimeSpanStyles, TimeSpan) | Converts the specified string representation of a time interval to its TimeSpan equivalent by using the specified formats, culture-specific format information, and styles, and returns a value that indicates whether the conversion succeeded. The format of the string representation must match one of the specified formats exactly. |

