TimeOfDayInterval.Intersect(TimeOfDayInterval, TimeOfDayInterval) Method
Returns a time-of-day interval which is the intersection of the two specified time-of-day intervals.
public static TimeOfDayInterval Intersect( TimeOfDayInterval interval1, TimeOfDayInterval interval2 )
Public Shared Function Intersect( interval1 As TimeOfDayInterval, interval2 As TimeOfDayInterval ) As TimeOfDayInterval
A TimeOfDayInterval object which represents the first time-of-day interval.
A TimeOfDayInterval object which represents the second time-of-day interval.
A TimeOfDayInterval object representing the intersection of the two time-of-day intervals. If the two specified time-of-day intervals don't intersect, the TimeOfDayInterval.Empty value will be returned.
The TimeOfDayInterval.Start of the returned TimeOfDayInterval is set to the TimeOfDayInterval.Start time of the time-of-day interval which starts last. The TimeOfDayInterval.End is set to the TimeOfDayInterval.End time of the time-of-day interval which ends first.