---
title: "seconds(forHostTime:)"
framework: avfaudio
role: symbol
role_heading: Type Method
path: "avfaudio/avaudiotime/seconds(forhosttime:)"
---

# seconds(forHostTime:)

Converts host time to seconds.

## Declaration

```swift
class func seconds(forHostTime hostTime: UInt64) -> TimeInterval
```

## Parameters

- `hostTime`: The host time.

## Return Value

Return Value The number of seconds that represent the host time you specify.

## See Also

### Manipulating Host Time

- [hostTime](avfaudio/avaudiotime/hosttime.md)
- [isHostTimeValid](avfaudio/avaudiotime/ishosttimevalid.md)
- [hostTime(forSeconds:)](avfaudio/avaudiotime/hosttime(forseconds:).md)
