Instance Method インスタンスメソッド

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.

Relationships 関係

From Protocol 由来プロトコル

See Also 参照

Modifying a Relative Date Format Style