timeRange function

List<DateTime> timeRange(
  1. DateTime start,
  2. DateTime stop,
  3. TimeInterval interval
)

Equivalent to timeTicks, but takes a time interval instead of count.

This method behaves similarly to TimeInterval.range except that both start and stop are inclusive and it may return dates in reverse chronological order if stop is before start.

Implementation

List<DateTime> timeRange(
        DateTime start, DateTime stop, TimeInterval interval) =>
    _timeSeq(start, stop, interval);