---
title: "hostTime(forSeconds:)"
framework: avfaudio
role: symbol
role_heading: Type Method
path: "avfaudio/avaudiotime/hosttime(forseconds:)"
---

# hostTime(forSeconds:)

Converts seconds to host time.

## Declaration

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

## Parameters

- `seconds`: The number of seconds.

## Return Value

Return Value The host time that represents the seconds you specify.

## See Also

### Manipulating Host Time

- [hostTime](avfaudio/avaudiotime/hosttime.md)
- [isHostTimeValid](avfaudio/avaudiotime/ishosttimevalid.md)
- [seconds(forHostTime:)](avfaudio/avaudiotime/seconds(forhosttime:).md)
