Instance Method

contains(_:)

Indicates whether the receiver contains the specified date.

Declaration

func contains(_ date: Date) -> Bool

Parameters

date

The date for which to test membership of the date interval.

Return Value

true if the receiver contains date. Otherwise, false.