<!--
{
  "availability" : [
    "iOS: 4.0.0 -",
    "iPadOS: 4.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.7.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreMedia",
  "identifier" : "/documentation/CoreMedia/CMTimeCopyAsDictionary(_:allocator:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Media"
    ],
    "preciseIdentifier" : "c:@F@CMTimeCopyAsDictionary"
  },
  "title" : "CMTimeCopyAsDictionary(_:allocator:)"
}
-->

# CMTimeCopyAsDictionary(_:allocator:)

Creates a dictionary representation of the time.

```
func CMTimeCopyAsDictionary(_ time: CMTime, allocator: CFAllocator?) -> CFDictionary?
```

## Parameters

`time`

A time from which to create a dictionary.

`allocator`

An allocator with which to create the dictionary. Pass <doc://com.apple.documentation/documentation/CoreFoundation/kCFAllocatorDefault> to use the default allocator.

## Return Value

A dictionary representation of the time.

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