Mono Class Library: Overview

System.TimeSpan: Method Members

The methods of System.TimeSpan are listed below. For a list of all members, see the TimeSpan Members list.

See Also: Inherited members from System.ValueType

Public Methods

Add(TimeSpan) : TimeSpan
Adds the specified TimeSpan to the current instance.
static
Compare(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.
override
Equals(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.
static
Equals(TimeSpan, TimeSpan) : bool
Determines whether two TimeSpan structures represent the same type and value.
static
FromDays(double) : TimeSpan
Returns a TimeSpan that represents the specified number of days where the specification is accurate to the nearest millisecond.
static
FromHours(double) : TimeSpan
Returns a TimeSpan that represents the specified number of hours where the specification is accurate to the nearest millisecond.
static
FromMilliseconds(double) : TimeSpan
Returns a TimeSpan that represents the specified number of milliseconds where the specification is accurate to the nearest millisecond.
static
FromMinutes(double) : TimeSpan
Returns a TimeSpan that represents the specified number of minutes where the specification is accurate to the nearest millisecond.
static
FromSeconds(double) : TimeSpan
Returns a TimeSpan that represents the specified number of seconds where the specification is accurate to the nearest millisecond.
static
FromTicks(long) : TimeSpan
Returns a TimeSpan that represents the specified number of ticks.
override
GetHashCode() : 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.
static
Parse(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.
override
ToString() : string
Returns a string representation of the value of the current instance.
static
TryParse(string, out TimeSpan) : bool
Documentation for this section has not yet been entered.