locale(_:)
Modifies the relative date format style to use the specified locale.
Declaration
func locale(_ locale: Locale) -> Date.RelativeFormatStyleParameters
- locale:
The locale to use when formatting relative dates.
Return Value
A relative date format style with the provided locale.