Instance Method

intersects(_:)

Indicates whether the receiver intersects with the specified date interval.

Declaration

func intersects(_ dateInterval: DateInterval) -> Bool

Parameters

dateInterval

The date interval with which to check the receiver for intersection.

Discussion

See intersection(with:) for more information about determining whether two date intervals intersect.

See Also

Determining Intersections

func intersection(with: DateInterval) -> DateInterval?

Returns the intersection between the receiver and the specified date interval.