Click or drag to resize

TimeGeneratorRegularSamplingFromIntervals Method (TimeIntervalCollection, Duration)

Generates times at regular steps within a set of intervals (not including the edges of the intervals).

Namespace:  AGI.Foundation.Time
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.1.418.0 (24.1.418.0)
public static IList<JulianDate> RegularSamplingFromIntervals(
	TimeIntervalCollection intervals,
	Duration step


Type: AGI.Foundation.TimeTimeIntervalCollection
The collection of intervals in which to generate times.
Type: AGI.Foundation.TimeDuration
The step between times.

Return Value

Type: IListJulianDate
A collection of times within the interval.

Times in the collection are generated as they are requested, so the returned collection uses a negligible amount of memory even when representing times over a large interval with a small step.

If the start date of the interval collection is included (IsStartIncluded), the first date in the collection will be the start date of the first interval. If it is not included, the first date in the collection will be step seconds later. Only samples which are regular steps from the start of sampling and which are contained in intervals are included. If no samples fall within the intervals, the list is empty.

See Also