The members of System.TimeSpan are listed below.
See Also: Inherited members from System.ValueType
| Constructs and initializes a new TimeSpan with the specified number of ticks. | ||
| Constructs and initializes a new TimeSpan with the specified numbers of hours, minutes, and seconds. | ||
| Constructs and initializes a new TimeSpan with the specified numbers of days, hours, minutes, and seconds. | ||
| Constructs and initializes a new TimeSpan with the specified numbers of days, hours, minutes, seconds, and milliseconds. |
static readonly | MaxValue | TimeSpan. Returns a TimeSpan whose value is the maximum value for the TimeSpan type. |
static readonly | MinValue | TimeSpan. Returns a TimeSpan whose value is the minimum value for the TimeSpan type. |
const | TicksPerDay | long (864000000000). Represents the number of ticks in 1 day. |
const | TicksPerHour | long (36000000000). Represents the number of ticks in 1 hour. |
const | TicksPerMillisecond | long (10000). Represents the number of ticks in 1 millisecond. |
const | TicksPerMinute | long (600000000). Represents the number of ticks in 1 minute. |
const | TicksPerSecond | long (10000000). Represents the number of ticks in 1 second. |
static readonly | Zero | TimeSpan. Returns a TimeSpan whose value is 0. |
| [read-only] | Days | int. Gets the number days represented by the current instance. |
| [read-only] | Hours | int. Gets the number of hours represented by the current instance. |
| [read-only] | Milliseconds | int. Gets the number of milliseconds represented by the current instance. |
| [read-only] | Minutes | int. Gets the number of minutes represented by the current instance. |
| [read-only] | Seconds | int. Gets the number of seconds represented by the current instance. |
| [read-only] | Ticks | long. Gets the number of ticks represented by the current instance. |
| [read-only] | TotalDays | double. Gets the value of the current instance expressed in days. |
| [read-only] | TotalHours | double. Gets the value of the current instance expressed in hours. |
| [read-only] | TotalMilliseconds | double. Gets the value of the current instance expressed in milliseconds. |
| [read-only] | TotalMinutes | double. Gets the value of the current instance expressed in minutes. |
| [read-only] | TotalSeconds | double. Gets the value of the current instance expressed in seconds. |
Add(TimeSpan)Adds the specified TimeSpan to the current instance. | ||
static | Compare(TimeSpan, TimeSpan)Returns the sort order of two TimeSpan structures. | |
CompareTo(object)Returns the sort order of the current instance compared to the specified object. | ||
CompareTo(TimeSpan)Returns the sort order of the current instance compared to the specified TimeSpan. | ||
Duration()Returns a TimeSpan whose value is the absolute value of the current instance. | ||
override | Equals(object)Determines whether the current instance and the specified object represent the same type and value. | |
Equals(TimeSpan)Determines whether the current instance and the specified TimeSpan represent the same value. | ||
static | Equals(TimeSpan, TimeSpan)Determines whether two TimeSpan structures represent the same type and value. | |
static | FromDays(double)Returns a TimeSpan that represents the specified number of days where the specification is accurate to the nearest millisecond. | |
static | FromHours(double)Returns a TimeSpan that represents the specified number of hours where the specification is accurate to the nearest millisecond. | |
static | FromMilliseconds(double)Returns a TimeSpan that represents the specified number of milliseconds where the specification is accurate to the nearest millisecond. | |
static | FromMinutes(double)Returns a TimeSpan that represents the specified number of minutes where the specification is accurate to the nearest millisecond. | |
static | FromSeconds(double)Returns a TimeSpan that represents the specified number of seconds where the specification is accurate to the nearest millisecond. | |
static | FromTicks(long)Returns a TimeSpan that represents the specified number of ticks. | |
override | GetHashCode()Generates a hash code for the current instance. | |
Negate()Returns a TimeSpan with the same absolute value but opposite sign as the current instance. | ||
static | Parse(string)Returns the specified string converted to a TimeSpan value. | |
static | Parse(string, IFormatProvider)Documentation for this section has not yet been entered. | |
static | ParseExact(string, string, IFormatProvider)Documentation for this section has not yet been entered. | |
static | ParseExact(string, string[], IFormatProvider)Documentation for this section has not yet been entered. | |
static | ParseExact(string, string, IFormatProvider, System.Globalization.TimeSpanStyles)Documentation for this section has not yet been entered. | |
static | ParseExact(string, string[], IFormatProvider, System.Globalization.TimeSpanStyles)Documentation for this section has not yet been entered. | |
Subtract(TimeSpan)Subtracts the value of the specified TimeSpan from the value of the current instance. | ||
override | ToString()Returns a string representation of the value of the current instance. | |
ToString(string)Documentation for this section has not yet been entered. | ||
ToString(string, IFormatProvider)Documentation for this section has not yet been entered. | ||
static | TryParse(string, out TimeSpan)Documentation for this section has not yet been entered. | |
static | TryParse(string, IFormatProvider, out TimeSpan)Documentation for this section has not yet been entered. | |
static | TryParseExact(string, string, IFormatProvider, out TimeSpan)Documentation for this section has not yet been entered. | |
static | TryParseExact(string, string[], IFormatProvider, out TimeSpan)Documentation for this section has not yet been entered. | |
static | TryParseExact(string, string, IFormatProvider, System.Globalization.TimeSpanStyles, out TimeSpan)Documentation for this section has not yet been entered. | |
static | TryParseExact(string, string[], IFormatProvider, System.Globalization.TimeSpanStyles, out TimeSpan)Documentation for this section has not yet been entered. | |
static | Addition(TimeSpan, TimeSpan) | Adds the values of two TimeSpan instances. |
static | Equality(TimeSpan, TimeSpan) | Determines whether the value of one TimeSpan is equal to the value of another TimeSpan. |
static | GreaterThan(TimeSpan, TimeSpan) | Determines whether the value one TimeSpan is greater than the value of another TimeSpan. |
static | GreaterThanOrEqual(TimeSpan, TimeSpan) | Determines whether the value of one TimeSpan is greater than or equal to the value of another TimeSpan. |
static | Inequality(TimeSpan, TimeSpan) | Determines whether the value of one TimeSpan is unequal to the value of another TimeSpan. |
static | LessThan(TimeSpan, TimeSpan) | Determines whether the value of one TimeSpan is less than the value of another TimeSpan. |
static | LessThanOrEqual(TimeSpan, TimeSpan) | Determines whether the value of one TimeSpan is less than or equal to the value of another TimeSpan. |
static | Subtraction(TimeSpan, TimeSpan) | Subtracts the value of one TimeSpan from the value of another TimeSpan. |
static | UnaryNegation | Returns a TimeSpan whose value is the negated value of a specified TimeSpan. |
static | UnaryPlus | Returns the specified instance of TimeSpan. |