Initializer

init(start:end:)

Initializes a date interval from a given start date and end date.

Declaration

convenience init(start startDate: Date, end endDate: Date)

Parameters

startDate

The start date of the date interval.

endDate

The end date of the date interval.

See Also

Creating Date Intervals

init()

Initializes a date interval by setting the start and end date to the current date.

init(start: Date, duration: TimeInterval)

Initializes a date interval with a given start date and duration.

init(coder: NSCoder)

Returns a date interval initialized from data in the given unarchiver.