---
title: "convertScale(_:method:)"
framework: coremedia
role: symbol
role_heading: Instance Method
path: "coremedia/cmtime/convertscale(_:method:)"
---

# convertScale(_:method:)

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

## Declaration

```swift
func convertScale(_ newTimescale: Int32, method: CMTimeRoundingMethod) -> CMTime
```

## Parameters

- `newTimescale`: The timescale to use for the converted time.
- `method`: The rounding method to apply.

## Return Value

Return Value A converted time value.

## See Also

### Changing the Timescale

- [CMTimeRoundingMethod](coremedia/cmtimeroundingmethod.md)
