DateTimeFormatter.LocalizedBy(Locale) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a copy of this formatter with localized values of the locale, calendar, decimal style and/or timezone, that superseded values in this formatter.
[Android.Runtime.Register("localizedBy", "(Ljava/util/Locale;)Ljava/time/format/DateTimeFormatter;", "", ApiSince=34)]
public Java.Time.Format.DateTimeFormatter? LocalizedBy (Java.Util.Locale? locale);
[<Android.Runtime.Register("localizedBy", "(Ljava/util/Locale;)Ljava/time/format/DateTimeFormatter;", "", ApiSince=34)>]
member this.LocalizedBy : Java.Util.Locale -> Java.Time.Format.DateTimeFormatter
Parameters
- locale
- Locale
the locale, not null
Returns
a formatter based on this formatter with localized values of the calendar, decimal style and/or timezone, that superseded values in this formatter.
- Attributes
Remarks
Returns a copy of this formatter with localized values of the locale, calendar, decimal style and/or timezone, that superseded values in this formatter.
This is used to lookup any part of the formatter needing specific localization, such as the text or localized pattern. If the locale contains the "ca" (calendar), "nu" (numbering system) and/or "tz" (timezone) Unicode extensions, the chronology, numbering system and/or the zone are overridden.
Unlike the #withLocale withLocale
method, the call to this method may produce a different formatter depending on the order of method chaining with other withXXXX() methods.
This instance is immutable and unaffected by this method call.
Added in 10.
Java documentation for java.time.format.DateTimeFormatter.localizedBy(java.util.Locale)
.
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.