[This is preliminary documentation and is subject to change.]

The TimeSpanFormattable type exposes the following members.

Constructors

  NameDescription
Public methodTimeSpanFormattable(Int64)
Initializes a new TimeSpanFormattable to the specified number of ticks.
Public methodTimeSpanFormattable(TimeSpan)
CTor from TimeSpan
Public methodTimeSpanFormattable(TimeSpanFormattable)
Copy CTor
Public methodTimeSpanFormattable(Int32, Int32, Int32)
Initializes a new TimeSpanFormattable to a specified number of hours, minutes, and seconds.
Public methodTimeSpanFormattable(Int32, Int32, Int32, Int32, Int32)
Initializes a new TimeSpanFormattable to a specified number of days, hours, minutes, seconds, and milliseconds.

Methods

  NameDescription
Public methodCompareTo
Compares this instance to a specified TimeSpanFormattable object and returns an indication of their relative values.
Public methodDuration
Returns a new TimeSpanFormattable object whose value is the absolute value of the current TimeSpanFormattable object.
Public methodEquals(Object)
Returns a value indicating whether this instance is equal to a specified TimeSpanFormattable object.
(Overrides ValueType..::..Equals(Object).)
Public methodEquals(TimeSpanFormattable)
Indicates whether the current TimeSpanFormattable is equal to another TimeSpanFormattable.
Public methodStatic memberFromDays
Returns a TimeSpanFormattable that represents a specified number of days, where the specification is accurate to the nearest millisecond.
Public methodStatic memberFromHours
Returns a TimeSpanFormattable that represents a specified number of hours, where the specification is accurate to the nearest millisecond.
Public methodStatic memberFromMillseconds
Returns a TimeSpanFormattable that represents a specified number of milliseconds.
Public methodStatic memberFromMinutes
Returns a TimeSpanFormattable that represents a specified number of minutes, where the specification is accurate to the nearest millisecond.
Public methodStatic memberFromSeconds
Returns a TimeSpanFormattable that represents a specified number of seconds, where the specification is accurate to the nearest millisecond.
Public methodStatic memberFromTicks
Returns a TimeSpanFormattable that represents a specified time, where the specification is in units of ticks.
Public methodGetHashCode
Returns a hash code for this instance.
(Overrides ValueType..::..GetHashCode()()()().)
Public methodStatic memberParse
Constructs a new TimeSpanFormattable object from a time interval specified in a string.
Public methodToString()()()()
Returns the string representation of the value of this instance.
(Overrides ValueType..::..ToString()()()().)
Public methodToString(String)
Formats the value of the current instance using the specified format, numeric format information is obtained from current locale setting of the operating system. If you want to use custom IFormatProvider use overloaded ToString()()()() function.
Public methodToString(String, IFormatProvider)
Formats the value of the current instance using the specified format.
Public methodStatic memberTryParse(String, TimeSpanFormattable%)
Constructs a new TimeSpanFormattable object from a time interval specified in a string. Parameters specify the time interval and the variable where the new TimeSpanFormattable object is returned.
Public methodStatic memberTryParse(String, IFormatProvider, TimeSpanFormattable%)
Constructs a new TimeSpanFormattable object from a time interval specified in a string. Parameters specify the time interval and the variable where the new TimeSpanFormattable object is returned.

Operators

  NameDescription
Public operatorStatic memberAddition(TimeSpan, TimeSpanFormattable)
Adds specified TimeSpanFormattable to another TimeSpan.
Public operatorStatic memberAddition(TimeSpanFormattable, TimeSpan)
Adds specified TimeSpan to another TimeSpanFormattable.
Public operatorStatic memberAddition(TimeSpanFormattable, TimeSpanFormattable)
Adds two specified TimeSpanFormattable instances.
Public operatorStatic memberEquality(TimeSpan, TimeSpanFormattable)
Indicates whether TimeSpan and TimeSpanFormattable instances are equal.
Public operatorStatic memberEquality(TimeSpanFormattable, TimeSpan)
Indicates whether TimeSpanFormattable and TimeSpan instances are equal.
Public operatorStatic memberEquality(TimeSpanFormattable, TimeSpanFormattable)
Indicates whether two TimeSpanFormattable instances are equal.
Public operatorStatic memberExplicitNarrowingExplicitExplicitExplicit(String to TimeSpanFormattable)
Constructs a new TimeSpanFormattable object from a time interval specified in a string.
Public operatorStatic memberGreaterThan(TimeSpan, TimeSpanFormattable)
Indicates whether a specified TimeSpan is greater than another specified TimeSpanFormattable.
Public operatorStatic memberGreaterThan(TimeSpanFormattable, TimeSpan)
Indicates whether a specified TimeSpanFormattable is greater than another specified TimeSpan.
Public operatorStatic memberGreaterThan(TimeSpanFormattable, TimeSpanFormattable)
Indicates whether a specified TimeSpanFormattable is greater than another specified TimeSpanFormattable.
Public operatorStatic memberGreaterThanOrEqual(TimeSpan, TimeSpanFormattable)
Indicates whether a specified TimeSpan is greater than or equal to another specified TimeSpanFormattable.
Public operatorStatic memberGreaterThanOrEqual(TimeSpanFormattable, TimeSpan)
Indicates whether a specified TimeSpanFormattable is greater than or equal to another specified TimeSpan.
Public operatorStatic memberGreaterThanOrEqual(TimeSpanFormattable, TimeSpanFormattable)
Indicates whether a specified TimeSpanFormattable is greater than or equal to another specified TimeSpanFormattable.
Public operatorStatic memberImplicitWideningImplicitImplicitImplicit(TimeSpan to TimeSpanFormattable)
Public operatorStatic memberImplicitWideningImplicitImplicitImplicit(TimeSpanFormattable to TimeSpan)
Public operatorStatic memberImplicitWideningImplicitImplicitImplicit(TimeSpanFormattable to String)
Public operatorStatic memberInequality(TimeSpan, TimeSpanFormattable)
Indicates whether TimeSpan and TimeSpanFormattable instances are not equal.
Public operatorStatic memberInequality(TimeSpanFormattable, TimeSpan)
Indicates whether TimeSpanFormattable nad TimeSpan instances are not equal.
Public operatorStatic memberInequality(TimeSpanFormattable, TimeSpanFormattable)
Indicates whether two TimeSpanFormattable instances are not equal.
Public operatorStatic memberLessThan(TimeSpan, TimeSpanFormattable)
Indicates whether a specified TimeSpan is less than another specified TimeSpanFormattable.
Public operatorStatic memberLessThan(TimeSpanFormattable, TimeSpan)
Indicates whether a specified TimeSpanFormattable is less than another specified TimeSpan.
Public operatorStatic memberLessThan(TimeSpanFormattable, TimeSpanFormattable)
Indicates whether a specified TimeSpanFormattable is less than another specified TimeSpanFormattable.
Public operatorStatic memberLessThanOrEqual(TimeSpan, TimeSpanFormattable)
Indicates whether a specified TimeSpan is less than or equal to another specified TimeSpanFormattable.
Public operatorStatic memberLessThanOrEqual(TimeSpanFormattable, TimeSpan)
Indicates whether a specified TimeSpanFormattable is less than or equal to another specified TimeSpan.
Public operatorStatic memberLessThanOrEqual(TimeSpanFormattable, TimeSpanFormattable)
Indicates whether a specified TimeSpanFormattable is less than or equal to another specified TimeSpanFormattable.
Public operatorStatic memberMultiply(Double, TimeSpanFormattable)
Multiplies given TimeSpanFormattable with given multiplier
Public operatorStatic memberMultiply(Int32, TimeSpanFormattable)
Multiplies given TimeSpanFormattable with given multiplier
Public operatorStatic memberMultiply(TimeSpanFormattable, Double)
Multiplies given TimeSpanFormattable with given multiplier
Public operatorStatic memberMultiply(TimeSpanFormattable, Int32)
Multiplies given TimeSpanFormattable with given multiplier
Public operatorStatic memberSubtraction(TimeSpan, TimeSpanFormattable)
Subtracts a specified TimeSpanFormattable from another specified TimeSpan.
Public operatorStatic memberSubtraction(TimeSpanFormattable, TimeSpan)
Subtracts a specified TimeSpan from another specified TimeSpanFormattable.
Public operatorStatic memberSubtraction(TimeSpanFormattable, TimeSpanFormattable)
Subtracts a specified TimeSpanFormattable from another specified TimeSpanFormattable.
Public operatorStatic memberUnaryNegation
Returns a TimeSpanFormattable whose value is the negated value of the specified instance.
Public operatorStatic memberUnaryPlus
Returns the specified instance of TimeSpanFormattable.

Fields

  NameDescription
Public fieldStatic memberefLong
Expanded pattern of predefined format G - long with full hours
Public fieldStatic memberefLongTime
Expanded pattern of predefined format T - long time patern
Public fieldStatic memberefShort
Expanded pattern of predefined format g - short with full hours
Public fieldStatic memberefShortest_dl
Expanded pattern of predefined format L - shortest possible from days to milliseconds
Public fieldStatic memberefShortest_ds
Expanded pattern of predefined format L - shortest possible from days to seconds
Public fieldStatic memberefShortest_hl
Expanded pattern of predefined format l - shortest possible from hours to milliseconds
Public fieldStatic memberefShortest_hs
Expanded pattern of predefined format L - shortest possible hours days to seconds
Public fieldStatic memberefShortTime
Expanded pattern of predefined format t - short time pattern
Public fieldStatic memberpfLong
Short code of predefined format G - long with full hours
Public fieldStatic memberpfLongTime
Short code of predefined format T - long time patern
Public fieldStatic memberpfShort
Short code of predefined format g - short with full hours
Public fieldStatic memberpfShortest_dl
Short code of predefined format L - shortest possible from days to milliseconds
Public fieldStatic memberpfShortest_ds
Short code of predefined format L - shortest possible from days to seconds
Public fieldStatic memberpfShortest_hl
Short code of predefined format l - shortest possible from hours to milliseconds
Public fieldStatic memberpfShortest_hs
Short code of predefined format L - shortest possible hours days to seconds
Public fieldStatic memberpfShortTime
Short code of predefined format t - short time pattern

Properties

  NameDescription
Public propertyDays
Gets the number of whole days represented by the current TimeSpanFormattable structure.
Public propertyHours
Gets the number of whole hours represented by the currentTimeSpanFormattable structure.
Public propertyMilliseconds
Gets the number of whole milliseconds represented by the current TimeSpanFormattable structure.
Public propertyMinutes
Gets the number of whole minutes represented by the current TimeSpanFormattable structure.
Public propertyStatic memberPredefinedFormats
Gets dictionary of all predefined formats. Keys contain short codes, values contain expanded patterns.
Public propertySeconds
Gets the number of whole seconds represented by the current TimeSpanFormattable structure.
Public propertyTicks
Gets the number of ticks that represent the value of the current TimeSpanFormattable structure.
Public propertyTotalDays
Gets the value of the current TimeSpanFormattable structure expressed in whole and fractional days.
Public propertyTotalHours
Gets the value of the current TimeSpanFormattable structure expressed in whole and fractional hours.
Public propertyTotalMilliseconds
Gets the value of the current TimeSpanFormattable structure expressed in whole and fractional milliseconds.
Public propertyTotalMinutes
Gets the value of the current TimeSpanFormattable structure expressed in whole and fractional minutes.
Public propertyTotalSeconds
Gets the value of the current TimeSpanFormattable structure expressed in whole and fractional seconds.

See Also