Skip to main content

TcxSchedulerDateTimeHelper.Intersect(TDateTime,TDateTime,TDateTime,TDateTime) Method

Determines whether the time interval defined by the AStart1 or AFinish1 datetimes overlaps with the time interval defined by the AStart and AFinish (inclusive) datetimes.

Declaration

class function Intersect(const AStart: TDateTime; const AFinish: TDateTime; const AStart1: TDateTime; const AFinish1: TDateTime): Boolean;

Parameters

Name Type
AStart TDateTime
AFinish TDateTime
AStart1 TDateTime
AFinish1 TDateTime

Returns

Type
Boolean

Remarks

The Intersect method returns True if the above time intervals share, at the very least, a single date.

The AStart and AFinish parameters specify the dates of the time interval that is overlapped by the time interval with the AStart1 or AFinish1 time bounds;

The AStart1 and AFinish1 parameters specify the dates of the time interval that overlaps the time interval with the AStart or AFinish time boundaries.

See Also