---
title: "CMTimeMakeWithEpoch(value:timescale:epoch:)"
framework: coremedia
role: symbol
role_heading: Function
path: "coremedia/cmtimemakewithepoch(value:timescale:epoch:)"
---

# CMTimeMakeWithEpoch(value:timescale:epoch:)

Creates a time with a value, timescale, and epoch.

## Declaration

```swift
func CMTimeMakeWithEpoch(value: Int64, timescale: Int32, epoch: Int64) -> CMTime
```

## Parameters

- `value`: An integer time value.
- `timescale`: An integer timescale value.
- `epoch`: An integer epoch value.

## Return Value

Return Value A time structure.

## See Also

### Creating a Time

- [CMTimeMake(value:timescale:)](coremedia/cmtimemake(value:timescale:).md)
- [CMTimeMakeWithSeconds(_:preferredTimescale:)](coremedia/cmtimemakewithseconds(_:preferredtimescale:).md)
- [CMTimeMakeFromDictionary(_:)](coremedia/cmtimemakefromdictionary(_:).md)
