getZoneIntervalsFromTo method
Returns all the zone intervals which occur for any instant in the interval [start
, end
).
This method is simply a convenience method for calling GetZoneIntervals(Interval)
without
explicitly static constructing the interval beforehand.
start
: Inclusive start point of the interval for which to retrieve zone intervals.end
: Exclusive end point of the interval for which to retrieve zone intervals.
Returns: A sequence of zone intervals covering the given interval.
ArgumentOutOfRangeException
:end
is earlier thanstart
.
see also: DateTimeZone.getZoneInterval
Implementation
Iterable<ZoneInterval> getZoneIntervalsFromTo(Instant start, Instant end) =>
// // The static constructor performs all the validation we need.
getZoneIntervals(Interval(start, end));