Instance Method

initWithStartDate:endDate:

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

Declaration

- (instancetype)initWithStartDate:(NSDate *)startDate endDate:(NSDate *)endDate;

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.

- initWithStartDate:duration:

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

- initWithCoder:

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