DfsExtensionsToSecondsFactor Method (IDfsTemporalAxis) |
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 is 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)
Syntaxpublic static double ToSecondsFactor(
this IDfsTemporalAxis timeAxis
)
<ExtensionAttribute>
Public Shared Function ToSecondsFactor (
timeAxis As IDfsTemporalAxis
) As Double
public:
[ExtensionAttribute]
static double ToSecondsFactor(
IDfsTemporalAxis^ timeAxis
)
[<ExtensionAttribute>]
static member ToSecondsFactor :
timeAxis : IDfsTemporalAxis -> float
Parameters
- timeAxis
- Type: DHI.Generic.MikeZero.DFSIDfsTemporalAxis
Time axis with time unit
Return Value
Type:
DoubleFactor from unit to seconds
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IDfsTemporalAxis. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also