<!--
{
  "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/CMTime/init(value:timescale:flags:epoch:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Core Media"
    ],
    "preciseIdentifier" : "s:So6CMTimea5value9timescale5flags5epochABs5Int64V_s5Int32VSo0A5FlagsVAHtcfc"
  },
  "title" : "init(value:timescale:flags:epoch:)"
}
-->

# init(value:timescale:flags:epoch:)

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

```
init(value: CMTimeValue, timescale: CMTimeScale, flags: CMTimeFlags, epoch: CMTimeEpoch)
```

## Parameters

`value`

An integer time value.

`timescale`

An integer timescale value.

`flags`

Optional flags to specify for the time.

`epoch`

An epoch for the time, which is typically `0`.

---

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)