Contents

init(start:end:)

Creates a new time range with the start and end dates and times that you specify.

Declaration

init?(start startDateComponents: DateComponents, end endDateComponents: DateComponents)

Parameters

  • startDateComponents:

    The start date and time of the range.

  • endDateComponents:

    The end date and time of the range.