DfsExtensionsToDateTime Method |
Returns the relativeTime as a DateTime.
The time axis must be a calendar type 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 DateTime ToDateTime(
this IDfsTemporalAxis timeAxis,
double relativeTime
)
<ExtensionAttribute>
Public Shared Function ToDateTime (
timeAxis As IDfsTemporalAxis,
relativeTime As Double
) As DateTime
public:
[ExtensionAttribute]
static DateTime ToDateTime(
IDfsTemporalAxis^ timeAxis,
double relativeTime
)
[<ExtensionAttribute>]
static member ToDateTime :
timeAxis : IDfsTemporalAxis *
relativeTime : float -> DateTime
Parameters
- timeAxis
- Type: DHI.Generic.MikeZero.DFSIDfsTemporalAxis
Temporal, calendar axis. - relativeTime
- Type: SystemDouble
Time relative to start of file. Unit is as specified in the temporal axis
Return Value
Type:
DateTimeTime as DateTime
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