Creates an index that contains the specified date range.
Namespace:
Extreme.DataAnalysis
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static Index<DateTime> CreateDateRange(
DateTime startDate,
DateTime endDate,
Recurrence recurrence,
bool startInclusive = false,
bool endInclusive = false
)
Public Shared Function CreateDateRange (
startDate As DateTime,
endDate As DateTime,
recurrence As Recurrence,
Optional startInclusive As Boolean = false,
Optional endInclusive As Boolean = false
) As Index(Of DateTime)
public:
static Index<DateTime>^ CreateDateRange(
DateTime startDate,
DateTime endDate,
Recurrence^ recurrence,
bool startInclusive = false,
bool endInclusive = false
)
static member CreateDateRange :
startDate : DateTime *
endDate : DateTime *
recurrence : Recurrence *
?startInclusive : bool *
?endInclusive : bool
(* Defaults:
let _startInclusive = defaultArg startInclusive false
let _endInclusive = defaultArg endInclusive false
*)
-> Index<DateTime>
Parameters
- startDate
- Type: SystemDateTime
The first date in the range. - endDate
- Type: SystemDateTime
The last date in the range. - recurrence
- Type: Extreme.DataAnalysisRecurrence
The recurrence pattern or frequency. - startInclusive (Optional)
- Type: SystemBoolean
Indicates whether the entire range should be included,
even if the first date extends past startDate. - endInclusive (Optional)
- Type: SystemBoolean
Indicates whether the entire range should be included,
even if the last date extends past endDate.
Return Value
Type:
IndexDateTimeAn index containing all instances between
startDate and
endDate that
match the
recurrence.
Reference