Open Instance Methodswift 6.0.3Foundation
intersects(_:)
func intersects(_ dateInterval: DateInterval) -> Bool
func intersects(_ dateInterval: DateInterval) -> Bool
s10Foundation14NSDateIntervalC10intersectsySb0A10Essentials04DateC0VF
What are these?3A4K4
import Foundation
class NSDateInterval
struct DateInterval
DateInterval represents a closed date interval in the form of [startDate, endDate]. It is possible for the start and end dates to be the same with a duration of 0. DateInterval does not support reverse intervals i.e. intervals where the duration is less than 0 and the end date occurs earlier in time than the start date.
@frozen struct Bool
A value type whose instances are either true
or false
.
override convenience init()
required convenience init?(coder: NSCoder)
init(start startDate: Date, duration: TimeInterval)
convenience init(start startDate: Date, end endDate: Date)
static var supportsSecureCoding: Bool { get }
let duration: TimeInterval
var endDate: Date { get }
let startDate: Date
static func < (lhs: NSDateInterval, rhs: NSDateInterval) -> Bool
func compare(_ dateInterval: DateInterval) -> ComparisonResult
func contains(_ date: Date) -> Bool
func copy(with zone: NSZone?) -> Any
func encode(with aCoder: NSCoder)
func intersection(with dateInterval: DateInterval) -> DateInterval?
func isEqual(to dateInterval: DateInterval) -> Bool