Click or drag to resize
TimeSpan Methods

The TimeSpan type exposes the following members.

Methods
  NameDescription
Public methodEquals(Object)
Returns a value indicating whether this instance is equal to a specified object.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(TimeSpan)
Returns a value indicating whether this instance is equal to a specified TimeSpan object.
Public methodStatic memberEquals(TimeSpan, TimeSpan)
Returns a value that indicates whether two specified instances of TimeSpan are equal.
Public methodStatic memberFromDays
Returns a TimeSpan that represents a specified number of days, where the specification is accurate to the nearest millisecond.
Public methodStatic memberFromHours
Returns a TimeSpan that represents a specified number of hours, where the specification is accurate to the nearest millisecond.
Public methodStatic memberFromMilliseconds
Returns a TimeSpan that represents a specified number of milliseconds.
Public methodStatic memberFromMinutes
Returns a TimeSpan that represents a specified number of minutes, where the specification is accurate to the nearest millisecond.
Public methodStatic memberFromSeconds
Returns a TimeSpan that represents a specified number of seconds, where the specification is accurate to the nearest millisecond.
Public methodStatic memberFromTicks
Returns a TimeSpan that represents a specified time, where the specification is in units of ticks.
Public methodGetHashCode
Returns a hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberParse(String)
Converts the string representation of a time interval to its TimeSpan equivalent.
Public methodStatic memberParse(String, IFormatProvider)
Converts the string representation of a time interval to its TimeSpan equivalent by using the specified culture-specific format information.
Public methodToString
Converts the value of the current TimeSpan object to its equivalent string representation.
(Overrides ValueTypeToString.)
Public methodToString(String)
Converts the value of the current TimeSpan object to its equivalent string representation by using the specified format.
Public methodToString(String, IFormatProvider)
Converts the value of the current TimeSpan object to its equivalent string representation by using the specified format and culture-specific formatting information.
Top
See Also