getZoneIntervalsFromTo method

Iterable<ZoneInterval> getZoneIntervalsFromTo(
  1. Instant start,
  2. Instant end
)

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 than start.

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));