<!--
{
  "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/CMTimeConvertScale(_:timescale:method:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Media"
    ],
    "preciseIdentifier" : "c:@F@CMTimeConvertScale"
  },
  "title" : "CMTimeConvertScale(_:timescale:method:)"
}
-->

# CMTimeConvertScale(_:timescale:method:)

Converts the source time to a new timescale using the specified rounding method.

```
func CMTimeConvertScale(_ time: CMTime, timescale newTimescale: Int32, method: CMTimeRoundingMethod) -> CMTime
```

## Parameters

`time`

The time to convert.

`newTimescale`

The timescale to use for the converted time.

`method`

The rounding method to apply.

## Return Value

A time structure that represents the time in a new timescale.

## Discussion

If this operation needs to round the value, it sets the resulting time’s [`hasBeenRounded`](/documentation/CoreMedia/CMTimeFlags/hasBeenRounded) flag. If the source time is nonnumeric (infinite, indefinite, or invalid), the result is also nonnumeric.

---

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)