The members of System.TimeSpan are listed below.
See Also: Inherited members from System.ValueType
Initializes a new instance of the TimeSpan structure to the specified number of ticks. | ||
Initializes a new instance of the TimeSpan structure to a specified number of hours, minutes, and seconds. | ||
Initializes a new instance of the TimeSpan structure to a specified number of days, hours, minutes, and seconds. | ||
Initializes a new instance of the TimeSpan structure to a specified number of days, hours, minutes, seconds, and milliseconds. |
static readonly | MaxValue | TimeSpan.
Represents the maximum TimeSpan value. This field is read-only. |
static readonly | MinValue | TimeSpan.
Represents the minimum TimeSpan value. This field is read-only. |
const | TicksPerDay | long (864000000000).
Represents the number of ticks in 1 day. This field is constant. |
const | TicksPerHour | long (36000000000).
Represents the number of ticks in 1 hour. This field is constant. |
const | TicksPerMillisecond | long (10000).
Represents the number of ticks in 1 millisecond. This field is constant. |
const | TicksPerMinute | long (600000000).
Represents the number of ticks in 1 minute. This field is constant. |
const | TicksPerSecond | long (10000000).
Represents the number of ticks in 1 second. |
static readonly | Zero | TimeSpan.
Represents the zero TimeSpan value. This field is read-only. |
[read-only] | Days | int.
Gets the days component of the time interval represented by the current TimeSpan structure. |
[read-only] | Hours | int.
Gets the hours component of the time interval represented by the current TimeSpan structure. |
[read-only] | Milliseconds | int.
Gets the milliseconds component of the time interval represented by the current TimeSpan structure. |
[read-only] | Minutes | int.
Gets the minutes component of the time interval represented by the current TimeSpan structure. |
[read-only] | Seconds | int.
Gets the seconds component of the time interval represented by the current TimeSpan structure. |
[read-only] | Ticks | long.
Gets the number of ticks that represent the value of the current TimeSpan structure. |
[read-only] | TotalDays | double.
Gets the value of the current TimeSpan structure expressed in whole and fractional days. |
[read-only] | TotalHours | double.
Gets the value of the current TimeSpan structure expressed in whole and fractional hours. |
[read-only] | TotalMilliseconds | double.
Gets the value of the current TimeSpan structure expressed in whole and fractional milliseconds. |
[read-only] | TotalMinutes | double.
Gets the value of the current TimeSpan structure expressed in whole and fractional minutes. |
[read-only] | TotalSeconds | double.
Gets the value of the current TimeSpan structure expressed in whole and fractional seconds. |
Add(TimeSpan)
| ||
static | Compare(TimeSpan, TimeSpan)
| |
CompareTo(object)
| ||
CompareTo(TimeSpan)
| ||
Duration()
| ||
override | Equals(object)
| |
Equals(TimeSpan)
| ||
static | Equals(TimeSpan, TimeSpan)
| |
static | FromDays(double)
| |
static | FromHours(double)
| |
static | FromMilliseconds(double)
| |
static | FromMinutes(double)
| |
static | FromSeconds(double)
| |
static | FromTicks(long)
| |
override | GetHashCode()
| |
Negate()
| ||
static | Parse(string)
| |
static | Parse(string, IFormatProvider)
| |
static | ParseExact(string, string, IFormatProvider)
| |
static | ParseExact(string, string[], IFormatProvider)
| |
static | ParseExact(string, string, IFormatProvider, System.Globalization.TimeSpanStyles)
| |
static | ParseExact(string, string[], IFormatProvider, System.Globalization.TimeSpanStyles)
| |
Subtract(TimeSpan)
| ||
override | ToString()
| |
ToString(string)
| ||
ToString(string, IFormatProvider)
| ||
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 two specified TimeSpan instances. |
static | Equality(TimeSpan, TimeSpan) |
Indicates whether two TimeSpan instances are equal. |
static | GreaterThan(TimeSpan, TimeSpan) |
Indicates whether a specified TimeSpan is greater than another specified TimeSpan. |
static | GreaterThanOrEqual(TimeSpan, TimeSpan) |
Indicates whether a specified TimeSpan is greater than or equal to another specified TimeSpan. |
static | Inequality(TimeSpan, TimeSpan) |
Indicates whether two TimeSpan instances are not equal. |
static | LessThan(TimeSpan, TimeSpan) |
Indicates whether a specified TimeSpan is less than another specified TimeSpan. |
static | LessThanOrEqual(TimeSpan, TimeSpan) |
Indicates whether a specified TimeSpan is less than or equal to another specified TimeSpan. |
static | Subtraction(TimeSpan, TimeSpan) |
Subtracts a specified TimeSpan from another specified TimeSpan. |
static | UnaryNegation |
Returns a TimeSpan whose value is the negated value of the specified instance. |
static | UnaryPlus |
Returns the specified instance of TimeSpan. |