Class TimeSpanConverterExtensions
This is an extension implementation of the TimeSpanConverter class.
Inheritance
System.Object
TimeSpanConverterExtensions
Namespace: Cuemon
Assembly: Cuemon.Core.dll
Syntax
public static class TimeSpanConverterExtensions
Methods
| Improve this DocToTimeSpan(Double, TimeUnit)
Converts the specified value
to its equivalent System.TimeSpan representation.
Declaration
public static TimeSpan ToTimeSpan(this double value, TimeUnit timeUnit)
Parameters
Type | Name | Description |
---|---|---|
System.Double | value | The value to be converted. |
TimeUnit | timeUnit | One of the enumeration values that specifies the outcome of the conversion. |
Returns
Type | Description |
---|---|
System.TimeSpan | A System.TimeSpan that corresponds to |
Exceptions
Type | Condition |
---|---|
System.OverflowException | The |
System.ArgumentOutOfRangeException |
|
ToTimeSpan(String, TimeUnit)
Converts the specified value
to its equivalent System.TimeSpan representation.
Declaration
public static TimeSpan ToTimeSpan(this string value, TimeUnit timeUnit)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | The string to be converted. |
TimeUnit | timeUnit | One of the enumeration values that specifies the outcome of the conversion. |
Returns
Type | Description |
---|---|
System.TimeSpan | A System.TimeSpan that corresponds to |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.OverflowException | The |
System.ArgumentOutOfRangeException |
|