DfsExtensionsTimeAsDateTime Method |
Convert the
Time to a DateTime.
If the time axis is not a calender type time axis, an exception is thrown.
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 TimeAsDateTime(
this IDfsItemData itemData,
IDfsTemporalAxis timeAxis
)
<ExtensionAttribute>
Public Shared Function TimeAsDateTime (
itemData As IDfsItemData,
timeAxis As IDfsTemporalAxis
) As DateTime
public:
[ExtensionAttribute]
static DateTime TimeAsDateTime(
IDfsItemData^ itemData,
IDfsTemporalAxis^ timeAxis
)
[<ExtensionAttribute>]
static member TimeAsDateTime :
itemData : IDfsItemData *
timeAxis : IDfsTemporalAxis -> DateTime
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:
DateTimeUsage 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).
See Also