---
title: "CMTimeRangeFromTimeToTime(start:end:)"
framework: Core Media
role: symbol
role_heading: Function
platforms: [iOS 4.0+, iPadOS 4.0+, Mac Catalyst 13.1+, macOS 10.7+, tvOS 9.0+, visionOS 1.0+, watchOS 6.0+]
path: "coremedia/cmtimerangefromtimetotime(start:end:)"
---

# CMTimeRangeFromTimeToTime(start:end:)

Creates a valid time range from a start and end time.

## Declaration

```swift
func CMTimeRangeFromTimeToTime(start: CMTime, end: CMTime) -> CMTimeRange
```

## Parameters

- `start`: The start time of the range.
- `end`: The end time of the range.

## Return Value

Return Value A valid time range structure.

## See Also

### Creating Time Ranges

- [CMTimeRangeMake(start:duration:)](coremedia/cmtimerangemake(start:duration:).md)
- [CMTimeRangeMakeFromDictionary(_:)](coremedia/cmtimerangemakefromdictionary(_:).md)
