Click or drag to resize

DfsExtensionsToSeconds Method

Converts a time value in the unit of the temporal axis (TimeUnit) to a time value in 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)
Syntax
public static double ToSeconds(
	this IDfsTemporalAxis timeAxis,
	double relativeTime
)

Parameters

timeAxis
Type: DHI.Generic.MikeZero.DFSIDfsTemporalAxis
Time axis with time unit
relativeTime
Type: SystemDouble
Relative time to convert to seconds.

Return Value

Type: Double
The relative time in 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