Skip to content

Initializer

init(start:end:)

iOS 10.0+ iPadOS 10.0+ Mac Catalyst 10.0+ macOS 10.12+ tvOS 10.0+ watchOS 3.0+
Initializes an interval with the specified start and end date.
init(start: Date, end: Date)

Discussion

Precondition

end >= start