DfsExtensionsToRelativeTime Method (IDfsTemporalAxis, Double) |
Converts a time value in seconds to a time value in the unit
of the temporal axis.
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 ToRelativeTime(
this IDfsTemporalAxis timeAxis,
double relativeSeconds
)
<ExtensionAttribute>
Public Shared Function ToRelativeTime (
timeAxis As IDfsTemporalAxis,
relativeSeconds As Double
) As Double
public:
[ExtensionAttribute]
static double ToRelativeTime(
IDfsTemporalAxis^ timeAxis,
double relativeSeconds
)
[<ExtensionAttribute>]
static member ToRelativeTime :
timeAxis : IDfsTemporalAxis *
relativeSeconds : float -> float
Parameters
- timeAxis
- Type: DHI.Generic.MikeZero.DFSIDfsTemporalAxis
Time axis with time unit - relativeSeconds
- Type: SystemDouble
Relative time in seconds to convert.
Return Value
Type:
DoubleThe time in time axis unit
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