ToTimeSpan Method
Definition
- Namespace
- Cuemon.Extensions
- Assemblies
- Cuemon.Extensions.Core.dll
ToTimeSpan(double, TimeUnit)
Converts the specified value to its equivalent TimeSpan representation.
public static TimeSpan ToTimeSpan(this double value, TimeUnit timeUnit)
Parameters
valuedoubleThe value to be converted.
timeUnitTimeUnitOne of the enumeration values that specifies the outcome of the conversion.
Returns
Exceptions
- OverflowException
The
valuepaired withtimeUnitis outside its valid range.- ArgumentOutOfRangeException
timeUnitwas outside its valid range.