<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: 15.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreAudio",
  "identifier" : "/documentation/CoreAudio/AudioHardwareDevice/translateTime(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core Audio"
    ],
    "preciseIdentifier" : "s:9CoreAudio0B14HardwareDeviceC13translateTimeySo0bF5StampVAFKF"
  },
  "title" : "translateTime(_:)"
}
-->

# translateTime(_:)

Translates the time in the device’s time base from one representation to another.
Note that the device has to be running

```
func translateTime(_ timestamp: AudioTimeStamp) throws -> AudioTimeStamp
```

## Parameters

`timestamp`

An AudioTimeStamp containing the time to be translated.

## Return Value

An AudioTimeStamp containing the translated time.

---

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)