Click or drag to resize

DfsExtensionsGetDateTimes Method (IDfsTemporalAxis)

Return an array of DateTimes which are the times for each timestep.

For non-equidistant axis, only the first and the last time are populated correctly. The rest are populated with MinValue.

For a complete list of DateTimes, also for non-equidistant axis, use the GetDateTimes(IDfsFile, DateTime, Boolean).

For time type axis, first time is StartTimeOffsetInSeconds(IDfsTemporalAxis) after MinValue.

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 DateTime[] GetDateTimes(
	this IDfsTemporalAxis temporalAxis
)

Parameters

temporalAxis
Type: DHI.Generic.MikeZero.DFSIDfsTemporalAxis

Return Value

Type: 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