---
title: CLKTimeIntervalTextProvider
framework: clockkit
role: symbol
role_heading: Class
path: clockkit/clktimeintervaltextprovider
---

# CLKTimeIntervalTextProvider

A formatted time range.

## Declaration

```swift
class CLKTimeIntervalTextProvider
```

## Mentioned in

Creating a timeline entry

## Overview

Overview This provider creates strings like “10:15–11:15AM” where the time range may span hours, days, or some larger time interval. The text provider takes into account the user’s region and locale settings. Time interval strings are more appropriate in complication families where there’s sufficient space to draw the full time range, such as the modular large and utilitarian large families. In families where space is more limited, the provider may display only the start date of the time range. When formatting the time interval, the time text provider drops the morning/evening indicator of the start time when it’s the same as the end time. Time intervals that are more than 24 hours are displayed as a range of days. The following are some examples of formatted time intervals: 9:30AM - 3:30PM 9:30 - 10:30AM Jan 1 - Jan 7 1/1 - 1/7

## Topics

### Creating the Text Provider

- [init(start:end:)](clockkit/clktimeintervaltextprovider/init(start:end:).md)
- [init(start:end:timeZone:)](clockkit/clktimeintervaltextprovider/init(start:end:timezone:).md)

### Getting the Time Information

- [startDate](clockkit/clktimeintervaltextprovider/startdate.md)
- [endDate](clockkit/clktimeintervaltextprovider/enddate.md)
- [timeZone](clockkit/clktimeintervaltextprovider/timezone.md)

### Initializers

- [init(startDate:endDate:)](clockkit/clktimeintervaltextprovider/init(startdate:enddate:).md)
- [init(startDate:endDate:timeZone:)](clockkit/clktimeintervaltextprovider/init(startdate:enddate:timezone:).md)

## Relationships

### Inherits From

- [CLKTextProvider](clockkit/clktextprovider.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Text providers

- [CLKSimpleTextProvider](clockkit/clksimpletextprovider.md)
- [CLKDateTextProvider](clockkit/clkdatetextprovider.md)
- [CLKRelativeDateTextProvider](clockkit/clkrelativedatetextprovider.md)
- [CLKTimeTextProvider](clockkit/clktimetextprovider.md)
- [CLKTextProvider](clockkit/clktextprovider.md)
