DayRangeGreedyUnion(Day) Method |
Returns the
DayRange that includes all the days
within this
DayRange, the specified
Day
(
dayToIncludeInUnion), and any days between.
Namespace: DegreeDays.TimeAssembly: DegreeDays (in DegreeDays.dll) Version: 1.4
Syntax public DayRange GreedyUnion(
Day dayToIncludeInUnion
)
Public Function GreedyUnion (
dayToIncludeInUnion As Day
) As DayRange
Parameters
- dayToIncludeInUnion Day
- The Day that the
returned DayRange should include (together with this
DayRange and any days between).
Return Value
DayRangeThe
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