<!--
{
  "availability" : [
    "watchOS: 2.0.0 - 27.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "ClockKit",
  "identifier" : "/documentation/ClockKit/CLKTimeIntervalTextProvider/init(start:end:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "ClockKit"
    ],
    "preciseIdentifier" : "c:objc(cs)CLKTimeIntervalTextProvider(cm)textProviderWithStartDate:endDate:"
  },
  "title" : "init(start:end:)"
}
-->

# init(start:end:)

Creates and returns a text provider with the specified start and end dates.

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

## Parameters

`startDate`

The start date for the time range. This parameter must not be `nil`.

`endDate`

The end date for the time range. The specified date must come after the date in the `startDate` parameter. This parameter must not be `nil`.

## Return Value

A text provider initialized with the specified start and end dates.

## Discussion

The returned text provider uses the default calendar and time zone information for the current user. Date and time values are formatted according to the user’s current locale information.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)