Click or drag to resize

DayRangeGreedyUnion(Day) Method

Returns the DayRange that includes all the days within this DayRange, the specified Day (dayToIncludeInUnion), and any days between.

Namespace: DegreeDays.Time
Assembly: DegreeDays (in DegreeDays.dll) Version: 1.4
Syntax
public DayRange GreedyUnion(
	Day dayToIncludeInUnion
)

Parameters

dayToIncludeInUnion  Day
The Day that the returned DayRange should include (together with this DayRange and any days between).

Return Value

DayRange
The DayRange that includes all the days within this DayRange, dayToIncludeInUnion, and any days between.
Remarks

This method is "greedy" because, if there is a gap between this DayRange and dayToIncludeInUnion, that gap will be included in the returned DayRange.

See Also