---
title: TVMediaItem.TimeRange
framework: tvmlkit
role: symbol
role_heading: Class
path: tvmlkit/tvmediaitem/timerange
---

# TVMediaItem.TimeRange

An object that defines a time range in a media item.

## Declaration

```swift
class TimeRange
```

## Topics

### Defining the Time Range

- [startTime](tvmlkit/tvmediaitem/timerange/starttime.md)
- [endTime](tvmlkit/tvmediaitem/timerange/endtime.md)
- [duration](tvmlkit/tvmediaitem/timerange/duration.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

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

## See Also

### Setting Timing Options

- [highlightGroups](tvmlkit/tvmediaitem/highlightgroups.md)
- [TVMediaItem.HighlightGroup](tvmlkit/tvmediaitem/highlightgroup.md)
- [interstitials](tvmlkit/tvmediaitem/interstitials.md)
- [resumeTime](tvmlkit/tvmediaitem/resumetime.md)
