DateTimeFormatterBuilder.GetLocalizedDateTimePattern 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.
Overloads
| Name | Description |
|---|---|
| GetLocalizedDateTimePattern(String, IChronology, Locale) |
Returns the formatting pattern for the requested template for a locale and chronology. |
| GetLocalizedDateTimePattern(FormatStyle, FormatStyle, IChronology, Locale) |
Gets the formatting pattern for a localized date and time style. |
GetLocalizedDateTimePattern(String, IChronology, Locale)
Returns the formatting pattern for the requested template for a locale and chronology.
[Android.Runtime.Register("getLocalizedDateTimePattern", "(Ljava/lang/String;Ljava/time/chrono/Chronology;Ljava/util/Locale;)Ljava/lang/String;", "", ApiSince=37)]
public static string GetLocalizedDateTimePattern(string requestedTemplate, Java.Time.Chrono.IChronology chrono, Java.Util.Locale locale);
[<Android.Runtime.Register("getLocalizedDateTimePattern", "(Ljava/lang/String;Ljava/time/chrono/Chronology;Ljava/util/Locale;)Ljava/lang/String;", "", ApiSince=37)>]
static member GetLocalizedDateTimePattern : string * Java.Time.Chrono.IChronology * Java.Util.Locale -> string
Parameters
- requestedTemplate
- String
the requested template, not null
- chrono
- IChronology
the Chronology, non-null
- locale
- Locale
the locale, non-null
Returns
the locale and Chronology specific formatting pattern
- Attributes
Remarks
Returns the formatting pattern for the requested template for a locale and chronology. The locale and chronology are used to lookup the locale specific format for the requested template. If the locale contains the "rg" (region override) Unicode extensions, the formatting pattern is overridden with the one appropriate for the region. Refer to appendLocalized(String) for the detail of requestedTemplate argument.
Java reference for java.time.format.DateTimeFormatterBuilder.getLocalizedDateTimePattern.
Applies to
GetLocalizedDateTimePattern(FormatStyle, FormatStyle, IChronology, Locale)
Gets the formatting pattern for a localized date and time style.
[Android.Runtime.Register("getLocalizedDateTimePattern", "(Ljava/time/format/FormatStyle;Ljava/time/format/FormatStyle;Ljava/time/chrono/Chronology;Ljava/util/Locale;)Ljava/lang/String;", "", ApiSince=26)]
public static string? GetLocalizedDateTimePattern(Java.Time.Format.FormatStyle? dateStyle, Java.Time.Format.FormatStyle? timeStyle, Java.Time.Chrono.IChronology? chrono, Java.Util.Locale? locale);
[<Android.Runtime.Register("getLocalizedDateTimePattern", "(Ljava/time/format/FormatStyle;Ljava/time/format/FormatStyle;Ljava/time/chrono/Chronology;Ljava/util/Locale;)Ljava/lang/String;", "", ApiSince=26)>]
static member GetLocalizedDateTimePattern : Java.Time.Format.FormatStyle * Java.Time.Format.FormatStyle * Java.Time.Chrono.IChronology * Java.Util.Locale -> string
Parameters
- dateStyle
- FormatStyle
the date style, null if no date is required
- timeStyle
- FormatStyle
the time style, null if no time is required
- chrono
- IChronology
the chronology, not null
- locale
- Locale
the locale, not null
Returns
the localized date-time pattern, not null
- Attributes
Remarks
The pattern is obtained from the locale and chronology.