DateTimeZone GetZoneIntervals Method (Interval)Noda Time
Returns all the zone intervals which occur for any instant in the given interval.

Namespace: NodaTime
Assembly: NodaTime (in NodaTime.dll) Version: 1.3.0.0 (1.3.1)
Syntax

public IEnumerable<ZoneInterval> GetZoneIntervals(
	Interval interval
)

Parameters

interval
Type: NodaTime Interval
Interval to find zone intervals for.

Return Value

Type: OnlineIEnumerable ZoneInterval 
A sequence of zone intervals covering the given interval.
Remarks

The zone intervals are returned in chronological order. This method is equivalent to calling GetZoneInterval(Instant) for every instant in the interval and then collapsing to a set of distinct zone intervals. The first and last zone intervals are likely to also cover instants outside the given interval; the zone intervals returned are not truncated to match the start and end points.

Version Information

Available since: 1.1.0
Supported in the PCL? Yes
See Also