Index.Create Date Range Method
Definition
Namespace: Extreme.DataAnalysis
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Overload List
Create | Creates an index that contains the specified date range. |
Create | Creates an index that contains the specified date range. |
Create | Creates an index that contains the specified date range. |
Create | Creates an index that contains the specified date range. |
Create | Creates an index that contains the specified date range. |
CreateDateRange(DateTime, DateTime)
Creates an index that contains the specified date range.
public static Index<DateTime> CreateDateRange(
DateTime startDate,
DateTime endDate
)
Parameters
Return Value
Index<DateTime>An index containing all days between startDate and endDate.
CreateDateRange(DateTime, Int32, Recurrence)
Creates an index that contains the specified date range.
public static Index<DateTime> CreateDateRange(
DateTime startDate,
int length,
Recurrence recurrence
)
Parameters
- startDate DateTime
- The first date in the range.
- length Int32
- The number of dates in the index.
- recurrence Recurrence
- The recurrence pattern or frequency.
Return Value
Index<DateTime>An index containing length days starting at startDate.
CreateDateRange(DateTime, Int32, SortOrder)
Creates an index that contains the specified date range.
public static Index<DateTime> CreateDateRange(
DateTime startDate,
int length,
SortOrder sortOrder = SortOrder.Ascending
)
Parameters
- startDate DateTime
- The first date in the range.
- length Int32
- The number of dates in the index.
- sortOrder SortOrder (Optional)
- Indicates whether the index should be sorted in ascending or descending order.
Return Value
Index<DateTime>An index containing length days starting at startDate.
CreateDateRange(DateTime, Int32, Recurrence, SortOrder)
Creates an index that contains the specified date range.
public static Index<DateTime> CreateDateRange(
DateTime startDate,
int length,
Recurrence recurrence,
SortOrder sortOrder = SortOrder.Ascending
)
Parameters
- startDate DateTime
- The first date in the range.
- length Int32
- The number of dates in the index.
- recurrence Recurrence
- The recurrence pattern or frequency.
- sortOrder SortOrder (Optional)
- Indicates whether the index should be sorted in ascending or descending order.
Return Value
Index<DateTime>An index containing length days starting at startDate.
CreateDateRange(DateTime, DateTime, Recurrence, Boolean, Boolean)
Creates an index that contains the specified date range.
public static Index<DateTime> CreateDateRange(
DateTime startDate,
DateTime endDate,
Recurrence recurrence,
bool startInclusive = false,
bool endInclusive = false
)
Parameters
- startDate DateTime
- The first date in the range.
- endDate DateTime
- The last date in the range.
- recurrence Recurrence
- The recurrence pattern or frequency.
- startInclusive Boolean (Optional)
- Indicates whether the entire range should be included, even if the first date extends past startDate.
- endInclusive Boolean (Optional)
- Indicates whether the entire range should be included, even if the last date extends past endDate.
Return Value
Index<DateTime>An index containing all instances between startDate and endDate that match the recurrence.