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.DFS
Assembly:
DHI.Generic.MIKEZero.DFS (in DHI.Generic.MIKEZero.DFS.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntaxpublic 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