DfsExtensionsToSecondsFactor Method (eumUnit) |
Returns a factor for converting from a time value in the
specified time unit to a time value in seconds.
For month and year time units, the factor not uniquely defined, and
may not return the value you want to use.
Namespace: DHI.Generic.MikeZero.DFSAssembly: DHI.Generic.MikeZero.DFS (in DHI.Generic.MikeZero.DFS.dll) Version: 16.0.0.0 (11.1.1.1111)
Syntax public static double ToSecondsFactor(
eumUnit timeUnit
)
Public Shared Function ToSecondsFactor (
timeUnit As eumUnit
) As Double
public:
static double ToSecondsFactor(
eumUnit timeUnit
)
static member ToSecondsFactor :
timeUnit : eumUnit -> float
Parameters
- timeUnit
- Type: eumUnit
Time unit
Return Value
Type:
DoubleFactor from unit to seconds
See Also