---
title: timeRange
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avcaptionconversionvalidator/timerange
---

# timeRange

The time range of the media timeline in which the captions must exist.

## Declaration

```swift
var timeRange: CMTimeRange { get }
```

## Discussion

Discussion If captions need to appear only after the start of the associated media, the start time of this time range can be less than the start time of the first caption’s time range. If the media duration is unknown, this time range can have a duration of positiveInfinity. However, to comprehensively validate the conversion of closed captions, set the duration of the time range to the duration of the associated media.

## See Also

### Inspecting the validator

- [captions](avfoundation/avcaptionconversionvalidator/captions.md)
