---
title: "CMTimeRangeGetEnd(_:)"
framework: coremedia
role: symbol
role_heading: Function
path: "coremedia/cmtimerangegetend(_:)"
---

# CMTimeRangeGetEnd(_:)

Returns a time value that represents the end of a time range.

## Declaration

```swift
func CMTimeRangeGetEnd(_ range: CMTimeRange) -> CMTime
```

## Parameters

- `range`: The time range from which to find the end of the time range.

## Return Value

Return Value A time structure.

## See Also

### Inspecting Time Ranges

- [CMTIMERANGE_IS_EMPTY(_:)](coremedia/cmtimerange_is_empty(_:).md)
- [CMTIMERANGE_IS_INDEFINITE(_:)](coremedia/cmtimerange_is_indefinite(_:).md)
- [CMTIMERANGE_IS_INVALID(_:)](coremedia/cmtimerange_is_invalid(_:).md)
- [CMTIMERANGE_IS_VALID(_:)](coremedia/cmtimerange_is_valid(_:).md)
- [CMTimeRangeGetIntersection(_:otherRange:)](coremedia/cmtimerangegetintersection(_:otherrange:).md)
- [CMTimeRangeGetUnion(_:otherRange:)](coremedia/cmtimerangegetunion(_:otherrange:).md)
