[This is preliminary documentation and is subject to change.]
The TimeSpanFormattable type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| TimeSpanFormattable | Overloaded. |
Methods
| Name | Description | |
|---|---|---|
| CompareTo | Compares this instance to a specified TimeSpanFormattable object and returns an indication of their relative values. | |
| Duration | Returns a new TimeSpanFormattable object whose value is the absolute value of the current TimeSpanFormattable object. | |
| Equals | Overloaded. | |
| Finalize |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
| FromDays | Returns a TimeSpanFormattable that represents a specified number of days, where the specification is accurate to the nearest millisecond. | |
| FromHours | Returns a TimeSpanFormattable that represents a specified number of hours, where the specification is accurate to the nearest millisecond. | |
| FromMillseconds | Returns a TimeSpanFormattable that represents a specified number of milliseconds. | |
| FromMinutes | Returns a TimeSpanFormattable that represents a specified number of minutes, where the specification is accurate to the nearest millisecond. | |
| FromSeconds | Returns a TimeSpanFormattable that represents a specified number of seconds, where the specification is accurate to the nearest millisecond. | |
| FromTicks | Returns a TimeSpanFormattable that represents a specified time, where the specification is in units of ticks. | |
| GetHashCode | Returns a hash code for this instance. (Overrides ValueType..::.GetHashCode()()().) | |
| GetType |
Gets the Type of the current instance.
(Inherited from Object.) | |
| MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| Parse | Constructs a new TimeSpanFormattable object from a time interval specified in a string. | |
| ToString | Overloaded. | |
| TryParse | 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
| Name | Description | |
|---|---|---|
| Addition | Overloaded. | |
| Equality | Overloaded. | |
| Explicit | Constructs a new TimeSpanFormattable object from a time interval specified in a string. | |
| GreaterThan | Overloaded. | |
| GreaterThanOrEqual | Overloaded. | |
| Implicit | Overloaded. | |
| Inequality | Overloaded. | |
| LessThan | Overloaded. | |
| LessThanOrEqual | Overloaded. | |
| Multiply | Overloaded. | |
| Subtraction | Overloaded. | |
| UnaryNegation | Returns a TimeSpanFormattable whose value is the negated value of the specified instance. | |
| UnaryPlus | Returns the specified instance of TimeSpanFormattable. |
Fields
| Name | Description | |
|---|---|---|
| efLong | Expanded pattern of predefined format G - long with full hours | |
| efLongTime | Expanded pattern of predefined format T - long time patern | |
| efShort | Expanded pattern of predefined format g - short with full hours | |
| efShortest_dl | Expanded pattern of predefined format L - shortest possible from days to milliseconds | |
| efShortest_ds | Expanded pattern of predefined format L - shortest possible from days to seconds | |
| efShortest_hl | Expanded pattern of predefined format l - shortest possible from hours to milliseconds | |
| efShortest_hs | Expanded pattern of predefined format L - shortest possible hours days to seconds | |
| efShortTime | Expanded pattern of predefined format t - short time pattern | |
| pfLong | Short code of predefined format G - long with full hours | |
| pfLongTime | Short code of predefined format T - long time patern | |
| pfShort | Short code of predefined format g - short with full hours | |
| pfShortest_dl | Short code of predefined format L - shortest possible from days to milliseconds | |
| pfShortest_ds | Short code of predefined format L - shortest possible from days to seconds | |
| pfShortest_hl | Short code of predefined format l - shortest possible from hours to milliseconds | |
| pfShortest_hs | Short code of predefined format L - shortest possible hours days to seconds | |
| pfShortTime | Short code of predefined format t - short time pattern |
Properties
| Name | Description | |
|---|---|---|
| Days | Gets the number of whole days represented by the current TimeSpanFormattable structure. | |
| Hours | Gets the number of whole hours represented by the currentTimeSpanFormattable structure. | |
| Milliseconds | Gets the number of whole milliseconds represented by the current TimeSpanFormattable structure. | |
| Minutes | Gets the number of whole minutes represented by the current TimeSpanFormattable structure. | |
| PredefinedFormats | Gets dictionary of all predefined formats. Keys contain short codes, values contain expanded patterns. | |
| Seconds | Gets the number of whole seconds represented by the current TimeSpanFormattable structure. | |
| Ticks | Gets the number of ticks that represent the value of the current TimeSpanFormattable structure. | |
| TotalDays | Gets the value of the current TimeSpanFormattable structure expressed in whole and fractional days. | |
| TotalHours | Gets the value of the current TimeSpanFormattable structure expressed in whole and fractional hours. | |
| TotalMilliseconds | Gets the value of the current TimeSpanFormattable structure expressed in whole and fractional milliseconds. | |
| TotalMinutes | Gets the value of the current TimeSpanFormattable structure expressed in whole and fractional minutes. | |
| TotalSeconds | Gets the value of the current TimeSpanFormattable structure expressed in whole and fractional seconds. |