Dil

DateTimeFormatter.OfLocalizedPattern(String) Method

Definition

Creates a locale specific formatter derived from the requested template for the ISO chronology.

[Android.Runtime.Register("ofLocalizedPattern", "(Ljava/lang/String;)Ljava/time/format/DateTimeFormatter;", "", ApiSince=37)]
public static Java.Time.Format.DateTimeFormatter OfLocalizedPattern(string requestedTemplate);
[<Android.Runtime.Register("ofLocalizedPattern", "(Ljava/lang/String;)Ljava/time/format/DateTimeFormatter;", "", ApiSince=37)>]
static member OfLocalizedPattern : string -> Java.Time.Format.DateTimeFormatter

Parameters

requestedTemplate
String

the requested template, not null

Returns

the formatter based on the requestedTemplate pattern, not null

Attributes

Remarks

Creates a locale specific formatter derived from the requested template for the ISO chronology.

"G{0,5}" +        // Era
"y*" +            // Year
"Q{0,5}" +        // Quarter
"M{0,5}" +        // Month
"w*" +            // Week of Week Based Year
"E{0,5}" +        // Day of Week
"d{0,2}" +        // Day of Month
"B{0,5}" +        // Period/AmPm of Day
"[hHjC]{0,2}" +   // Hour of Day/AmPm (refer to LDML for 'j' and 'C')
"m{0,2}" +        // Minute of Hour
"s{0,2}" +        // Second of Minute
"[vz]{0,4}"       // Zone

Java reference for java.time.format.DateTimeFormatter.ofLocalizedPattern.

Applies to