Skip to main content

TimeOfDayInterval.Union(TimeOfDayInterval, TimeOfDayInterval) Method

Returns a time of day interval which is composed of two specified time of day intervals.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v24.2.Core.dll

Declaration

public static TimeOfDayInterval Union(
    TimeOfDayInterval interval1,
    TimeOfDayInterval interval2
)

Parameters

Name Type Description
interval1 TimeOfDayInterval

A TimeOfDayInterval object which represents the first time of day interval to be united.

interval2 TimeOfDayInterval

A TimeOfDayInterval object which represents the second time of day interval to be united.

Returns

Type Description
TimeOfDayInterval

A TimeOfDayInterval object representing a union of two time of day intervals.

Remarks

The TimeOfDayInterval.Start of the returned TimeOfDayInterval is set to the TimeOfDayInterval.Start time of the interval which starts first. The TimeOfDayInterval.End is set to the TimeOfDayInterval.End time of the interval which ends last.

See Also