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: 24.2.419.0 (24.2.419.0)
Syntax public static IList<JulianDate> FromInterval(
JulianDate start,
JulianDate stop,
Duration step
)
Public Shared Function FromInterval (
start As JulianDate,
stop As JulianDate,
step As Duration
) As IList(Of JulianDate)
public:
static IList<JulianDate>^ FromInterval(
JulianDate start,
JulianDate stop,
Duration step
)
static member FromInterval :
start : JulianDate *
stop : JulianDate *
step : Duration -> IList<JulianDate>
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:
IListJulianDateA 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