<!--
{
  "availability" : [
    "iOS: 6.0.0 -",
    "iPadOS: 6.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVMetadataObject/time",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVMetadataObject(py)time"
  },
  "title" : "time"
}
-->

# time

The media time value associated with the metadata object.

```
var time: CMTime { get }
```

## Discussion

For captured media, this property represents the time when the metadata was captured. For metadata originating from a sample buffer (<doc://com.apple.documentation/documentation/CoreMedia/CMSampleBuffer>), the time is the sample buffer’s presentation time. If there is no valid time value associated with the metadata, this property should contain <doc://com.apple.documentation/documentation/CoreMedia/CMTime/invalid>.

---

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)