Class DoubleConverterExtensions
This is an extension implementation of the DoubleConverter class.
Inheritance
System.Object
DoubleConverterExtensions
Namespace: Cuemon
Assembly: Cuemon.Core.dll
Syntax
public static class DoubleConverterExtensions
Methods
| Improve this DocToEpochTime(DateTime)
Converts the specified value
to an equivalent Epoc time representation.
Declaration
public static double ToEpochTime(this DateTime value)
Parameters
Type | Name | Description |
---|---|---|
System.DateTime | value | The System.DateTime value to be converted. |
Returns
Type | Description |
---|---|
System.Double | A System.Double value that is equivalent to |
Remarks
This implementation converts the value
to an UTC representation ONLY if the System.DateTime.Kind equals System.DateTimeKind.Local.
ToEpochTime(DateTime, Func<DateTime, DateTime>)
Converts the specified value
to an equivalent Epoc time representation.
Declaration
public static double ToEpochTime(this DateTime value, Func<DateTime, DateTime> utcConverter)
Parameters
Type | Name | Description |
---|---|---|
System.DateTime | value | The System.DateTime value to be converted. |
System.Func<System.DateTime, System.DateTime> | utcConverter | The function delegate that will convert the given |
Returns
Type | Description |
---|---|
System.Double | A System.Double value that is equivalent to |