<!--
{
  "availability" : [
    "iOS: 4.0.0 -",
    "iPadOS: 4.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.7.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreMedia",
  "identifier" : "/documentation/CoreMedia/CMTimeRangeFromTimeToTime(start:end:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Media"
    ],
    "preciseIdentifier" : "c:@F@CMTimeRangeFromTimeToTime"
  },
  "title" : "CMTimeRangeFromTimeToTime(start:end:)"
}
-->

# CMTimeRangeFromTimeToTime(start:end:)

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

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

## Parameters

`start`

The start time of the range.

`end`

The end time of the range.

## Return Value

A valid time range structure.

## Discussion

---

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)