DfsExtensionsTimeInSeconds Method |
Convert the
Time to seconds.
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 TimeInSeconds(
this IDfsItemData itemData,
IDfsTemporalAxis timeAxis
)
<ExtensionAttribute>
Public Shared Function TimeInSeconds (
itemData As IDfsItemData,
timeAxis As IDfsTemporalAxis
) As Double
public:
[ExtensionAttribute]
static double TimeInSeconds(
IDfsItemData^ itemData,
IDfsTemporalAxis^ timeAxis
)
[<ExtensionAttribute>]
static member TimeInSeconds :
itemData : IDfsItemData *
timeAxis : IDfsTemporalAxis -> float
Parameters
- itemData
- Type: DHI.Generic.MikeZero.DFSIDfsItemData
Item data to get time from - timeAxis
- Type: DHI.Generic.MikeZero.DFSIDfsTemporalAxis
Time axis from the file that the item belongs to
Return Value
Type:
DoubleUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IDfsItemData. 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).
Remarks
If the time axis unit can not be converted to seconds, an exception is thrown.
See Also