Contents

locale(_:)

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

Declaration

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

Parameters

  • locale:

    The locale for formatting a date interval.

Return Value

A date inteverval format style with the provided locale.

See Also

Specifying Date Interval Format Styles