---
title: "containsTime(_:)"
framework: coremedia
role: symbol
role_heading: Instance Method
path: "coremedia/cmtimerange/containstime(_:)"
---

# containsTime(_:)

Returns a Boolean value that indicates whether the time range contains a time.

## Declaration

```swift
func containsTime(_ time: CMTime) -> Bool
```

## Parameters

- `time`: A time value to test for in the time range.

## Return Value

Return Value true if the time range contains the time value; otherwise, false.

## See Also

### Finding Elements

- [containsTimeRange(_:)](coremedia/cmtimerange/containstimerange(_:).md)
