---
title: "CMTimeMakeFromDictionary(_:)"
framework: coremedia
role: symbol
role_heading: Function
path: "coremedia/cmtimemakefromdictionary(_:)"
---

# CMTimeMakeFromDictionary(_:)

Creates a time from a dictionary representation of its fields.

## Declaration

```swift
func CMTimeMakeFromDictionary(_ dictionaryRepresentation: CFDictionary?) -> CMTime
```

## Parameters

- `dictionaryRepresentation`: A dictionary created from a call to doc://com.apple.coremedia/documentation/CoreMedia/CMTimeCopyAsDictionary(_:allocator:).

## Return Value

Return Value A time structure.

## Discussion

Discussion For keys in the dictionary, see Dictionary Keys.

## See Also

### Creating a Time

- [CMTimeMake(value:timescale:)](coremedia/cmtimemake(value:timescale:).md)
- [CMTimeMakeWithEpoch(value:timescale:epoch:)](coremedia/cmtimemakewithepoch(value:timescale:epoch:).md)
- [CMTimeMakeWithSeconds(_:preferredTimescale:)](coremedia/cmtimemakewithseconds(_:preferredtimescale:).md)
