<!--
{
  "availability" : [
    "iOS: 6.0.0 -",
    "iPadOS: 6.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.8.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVPlayerItemOutput/itemTime(forMachAbsoluteTime:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVPlayerItemOutput(im)itemTimeForMachAbsoluteTime:"
  },
  "title" : "itemTime(forMachAbsoluteTime:)"
}
-->

# itemTime(forMachAbsoluteTime:)

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

```
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

The equivalent time in the item’s timebase.

## 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)