Mono Class Library: OverviewSystem.TimeSpan: Members |
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 readonlyMaxValue TimeSpan. Returns a TimeSpan whose value is the maximum value for the TimeSpan type. static readonlyMinValue TimeSpan. Returns a TimeSpan whose value is the minimum value for the TimeSpan type. constTicksPerDay long (864000000000). Represents the number of ticks in 1 day. constTicksPerHour long (36000000000). Represents the number of ticks in 1 hour. constTicksPerMillisecond long (10000). Represents the number of ticks in 1 millisecond. constTicksPerMinute long (600000000). Represents the number of ticks in 1 minute. constTicksPerSecond long (10000000). Represents the number of ticks in 1 second. static readonlyZero 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) : TimeSpan Adds the specified TimeSpan to the current instance. staticCompare(TimeSpan, TimeSpan) : int Returns the sort order of two TimeSpan structures.CompareTo(object) : int Returns the sort order of the current instance compared to the specified object.CompareTo(TimeSpan) : int Returns the sort order of the current instance compared to the specified TimeSpan.Duration() : TimeSpan Returns a TimeSpan whose value is the absolute value of the current instance. overrideEquals(object) : bool Determines whether the current instance and the specified object represent the same type and value.Equals(TimeSpan) : bool Determines whether the current instance and the specified TimeSpan represent the same value. staticEquals(TimeSpan, TimeSpan) : bool Determines whether two TimeSpan structures represent the same type and value. staticFromDays(double) : TimeSpan Returns a TimeSpan that represents the specified number of days where the specification is accurate to the nearest millisecond. staticFromHours(double) : TimeSpan Returns a TimeSpan that represents the specified number of hours where the specification is accurate to the nearest millisecond. staticFromMilliseconds(double) : TimeSpan Returns a TimeSpan that represents the specified number of milliseconds where the specification is accurate to the nearest millisecond. staticFromMinutes(double) : TimeSpan Returns a TimeSpan that represents the specified number of minutes where the specification is accurate to the nearest millisecond. staticFromSeconds(double) : TimeSpan Returns a TimeSpan that represents the specified number of seconds where the specification is accurate to the nearest millisecond. staticFromTicks(long) : TimeSpan Returns a TimeSpan that represents the specified number of ticks. overrideGetHashCode() : int Generates a hash code for the current instance.Negate() : TimeSpan Returns a TimeSpan with the same absolute value but opposite sign as the current instance. staticParse(string) : TimeSpan Returns the specified string converted to a TimeSpan value.Subtract(TimeSpan) : TimeSpan Subtracts the value of the specified TimeSpan from the value of the current instance. overrideToString() : string Returns a string representation of the value of the current instance. staticTryParse(string, out TimeSpan) : bool Documentation for this section has not yet been entered.
staticAddition(TimeSpan, TimeSpan) Adds the values of two TimeSpan instances. staticEquality(TimeSpan, TimeSpan) Determines whether the value of one TimeSpan is equal to the value of another TimeSpan. staticGreaterThan(TimeSpan, TimeSpan) Determines whether the value one TimeSpan is greater than the value of another TimeSpan. staticGreaterThanOrEqual(TimeSpan, TimeSpan) Determines whether the value of one TimeSpan is greater than or equal to the value of another TimeSpan. staticInequality(TimeSpan, TimeSpan) Determines whether the value of one TimeSpan is unequal to the value of another TimeSpan. staticLessThan(TimeSpan, TimeSpan) Determines whether the value of one TimeSpan is less than the value of another TimeSpan. staticLessThanOrEqual(TimeSpan, TimeSpan) Determines whether the value of one TimeSpan is less than or equal to the value of another TimeSpan. staticSubtraction(TimeSpan, TimeSpan) Subtracts the value of one TimeSpan from the value of another TimeSpan. staticUnaryNegation Returns a TimeSpan whose value is the negated value of a specified TimeSpan. staticUnaryPlus Returns the specified instance of TimeSpan.