Aracılığıyla paylaş


DateTimeFormatter.Locale Property

Definition

Gets the locale to be used during formatting.

public Java.Util.Locale? Locale { [Android.Runtime.Register("getLocale", "()Ljava/util/Locale;", "", ApiSince=26)] get; }
[<get: Android.Runtime.Register("getLocale", "()Ljava/util/Locale;", "", ApiSince=26)>]
member this.Locale : Java.Util.Locale

Property Value

the locale of this formatter, not null

Attributes

Remarks

Gets the locale to be used during formatting.

This is used to lookup any part of the formatter needing specific localization, such as the text or localized pattern.

Java documentation for java.time.format.DateTimeFormatter.getLocale().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to