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

# itemTime(forMachAbsoluteTime:)

Converts a Mach host time to the item’s timebase.

## Declaration

```swift
func itemTime(forMachAbsoluteTime machAbsoluteTime: Int64) -> CMTime
```

## Parameters

- `machAbsoluteTime`: The Mach host time to convert. You typically retrieve this value using the mach_absolute_time function.

## Return Value

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

## See Also

### Time conversion

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