Contents

locale(_:)

Modifies the relative date format style to use the specified locale.

Declaration

func locale(_ locale: Locale) -> Date.RelativeFormatStyle

Parameters

  • locale:

    The locale to use when formatting relative dates.

Return Value

A relative date format style with the provided locale.

See Also

Modifying a Relative Date Format Style