---
title: time
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avmetadataobject/time
---

# time

The media time value associated with the metadata object.

## Declaration

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

## Discussion

Discussion For captured media, this property represents the time when the metadata was captured. For metadata originating from a sample buffer (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 invalid.

## See Also

### Inspecting the metadata

- [bounds](avfoundation/avmetadataobject/bounds.md)
- [duration](avfoundation/avmetadataobject/duration.md)
- [type](avfoundation/avmetadataobject/type.md)
- [AVMetadataObject.ObjectType](avfoundation/avmetadataobject/objecttype.md)
- [isFixedFocus](avfoundation/avmetadataobject/isfixedfocus.md)
- [cinematicVideoFocusMode](avfoundation/avmetadataobject/cinematicvideofocusmode.md)
- [groupID](avfoundation/avmetadataobject/groupid.md)
- [objectID](avfoundation/avmetadataobject/objectid.md)
