Initializer

init(start:end:)

Initializes an interval with the specified start and end date.

Declaration

init(start: Date, end: Date)

Discussion

Precondition: end >= start

See Also

Creating a Date Interval

init()

Initializes an interval with start and end dates set to the current date and the duration set to 0.

init(start: Date, duration: TimeInterval)

Initializes an interval with the specified start date and duration.