TimeSpan |
IComparable | |
IFormattable | |
IObject |
Name | Description |
---|---|
![]() | Returns the Days portion of the duration. |
![]() | Returns the Hours portion of the duration. |
![]() | Returns the Milliseconds portion of the duration. |
![]() | Returns the Minutes portion of the duration. |
![]() | Returns the Seconds portion of the duration. |
![]() | Returns the duration in ticks. |
![]() | Returns the duration of this instance in days. |
![]() | Returns the duration of this instance in hours. |
![]() | Returns the duration of this instance in milliseconds. |
![]() | Returns the duration of this instance in minutes. |
![]() | Returns the duration of this instance in seconds. |
Name | Description |
---|---|
![]() | Adds a timespan to this instance. |
![]() | Compares this TimeSpan with another timespan. |
![]() | Returns the absolute value of this instance. |
![]() | Returns a boolean indicating if the value and this TimeSpan instance are the same value. |
![]() | Returns a pseudo-unique number identifying this instance. |
![]() | Returns a TimeSpan with the opposite sign of this instance. |
![]() | Subtracts a timespan from this instance. |
![]() | Converts the value of the current TimeSpan object to its equivalent string representation by using the specified format and culture-specific formatting information. |
The time is represented internally in milliseconds, with a fractional portion to represent ticks. A tick is defined as 100 nanoseconds, or 1/10000 of a millisecond. TimeSpans are displayed in a [-][d.]hh:mm:ss[.ff] format. Bracketed fields are only displayed if they are not zero. A negative sign is displayed if the timespan is negative.