Contents

locale(_:)

Modifies the format style to use the specified locale.

Declaration

func locale(_ locale: Locale) -> Duration.UnitsFormatStyle.Attributed

Parameters

  • locale:

    The locale to use when formatting a duration.

Return Value

A format style with the provided locale.