Contents

locale(_:)

Modifies the format style to use the specified locale.

Declaration

func locale(_ locale: Locale) -> Duration.TimeFormatStyle

Parameters

  • locale:

    The locale to use when formatting a duration.

Return Value

A format style with the provided locale.

See Also

Working with locales