Creates an index of
DateTime keys from the specified start date
over the specified time span.
Namespace:
Extreme.DataAnalysis
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public Index<DateTime> CreateDateTimeIndex(
DateTime startDate,
TimeSpan timeSpan,
bool startInclusive,
bool endInclusive
)
Public Function CreateDateTimeIndex (
startDate As DateTime,
timeSpan As TimeSpan,
startInclusive As Boolean,
endInclusive As Boolean
) As Index(Of DateTime)
public:
Index<DateTime>^ CreateDateTimeIndex(
DateTime startDate,
TimeSpan timeSpan,
bool startInclusive,
bool endInclusive
)
member CreateDateTimeIndex :
startDate : DateTime *
timeSpan : TimeSpan *
startInclusive : bool *
endInclusive : bool -> Index<DateTime>
Parameters
- startDate
- Type: SystemDateTime
The first date in the index. - timeSpan
- Type: SystemTimeSpan
The total time span of dates in the index. - startInclusive
- Type: SystemBoolean
Indicates if the first entry in the index should be adjusted
so the index contains the entire range
even if that makes it longer than timeSpan. - endInclusive
- Type: SystemBoolean
Indicates if the last entry in the index should be adjusted
so the index contains the entire range
even if that makes it longer than timeSpan.
Return Value
Type:
IndexDateTimeAn index of dates following the recurrence pattern
starting with
startDate and up to
timeSpan
away from
startDate.
The timeSpan is relative to startDate,
not to the actual first date in the index. If timeSpan
is negative, the dates in the index are in descending order.
Reference