Click or drag to resize

TimeGeneratorFromInterval Method (JulianDate, JulianDate, Duration)

Generates times at a specified frequency within an interval as well as the stop time.

Namespace:  AGI.Foundation.Time
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 21.2.409.0 (21.2.409.0)
Syntax
public static IList<JulianDate> FromInterval(
	JulianDate start,
	JulianDate stop,
	Duration step
)

Parameters

start
Type: AGI.Foundation.TimeJulianDate
The first date in the returned collection.
stop
Type: AGI.Foundation.TimeJulianDate
The last date in the returned collection.
step
Type: AGI.Foundation.TimeDuration
The step between times.

Return Value

Type: IListJulianDate
A collection of times within the interval.
Remarks

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.

The first date in the collection will be start. The last date in the collection will be stop, so the difference between the second-to-last date and the last date may be less than step. Also, these dates will always be present in the returned collection even if the duration between them is less than step.

See Also