Contents

seconds(_:)

Construct a Duration given a number of seconds represented as a BinaryInteger.

Declaration

static func seconds<T>(_ seconds: T) -> Duration where T : BinaryInteger

Return Value

A Duration representing a given number of seconds.

Discussion

  let d: Duration = .seconds(77)

See Also

Creating a duration