Contents

format(_:)

Creates a locale-aware string representation from a duration value.

Declaration

func format(_ duration: Duration) -> String

Parameters

  • duration:

    The value to format.

Return Value

A string representation of the duration.