---
title: "itemTime(for:)"
framework: avfoundation
role: symbol
role_heading: Instance Method
path: "avfoundation/avplayeritemoutput/itemtime(for:)"
---

# itemTime(for:)

Converts a Core Video timestamp to the item’s timebase.

## Declaration

```swift
func itemTime(for timestamp: CVTimeStamp) -> CMTime
```

## Parameters

- `timestamp`: A timestamp value provided by the Core Video framework.

## Return Value

Return Value The equivalent time in the item’s timebase.

## See Also

### Time conversion

- [itemTime(forHostTime:)](avfoundation/avplayeritemoutput/itemtime(forhosttime:).md)
- [itemTime(forMachAbsoluteTime:)](avfoundation/avplayeritemoutput/itemtime(formachabsolutetime:).md)
