Share via


SimpleDateFormat.SubFormat Method

Definition

Formats a single field, given its pattern character.

[Android.Runtime.Register("subFormat", "(CIILjava/text/FieldPosition;Landroid/icu/text/DateFormatSymbols;Landroid/icu/util/Calendar;)Ljava/lang/String;", "GetSubFormat_CIILjava_text_FieldPosition_Landroid_icu_text_DateFormatSymbols_Landroid_icu_util_Calendar_Handler", ApiSince=24)]
protected virtual string? SubFormat (char ch, int count, int beginOffset, Java.Text.FieldPosition? pos, Android.Icu.Text.DateFormatSymbols? fmtData, Android.Icu.Util.Calendar? cal);
[<Android.Runtime.Register("subFormat", "(CIILjava/text/FieldPosition;Landroid/icu/text/DateFormatSymbols;Landroid/icu/util/Calendar;)Ljava/lang/String;", "GetSubFormat_CIILjava_text_FieldPosition_Landroid_icu_text_DateFormatSymbols_Landroid_icu_util_Calendar_Handler", ApiSince=24)>]
abstract member SubFormat : char * int * int * Java.Text.FieldPosition * Android.Icu.Text.DateFormatSymbols * Android.Icu.Util.Calendar -> string
override this.SubFormat : char * int * int * Java.Text.FieldPosition * Android.Icu.Text.DateFormatSymbols * Android.Icu.Util.Calendar -> string

Parameters

ch
Char

the pattern character

count
Int32

the number of times ch is repeated in the pattern

beginOffset
Int32

the offset of the output string at the start of this field; used to set pos when appropriate

pos
FieldPosition

receives the position of a field, when appropriate

fmtData
DateFormatSymbols

the symbols for this formatter

cal
Calendar

Returns

Attributes

Remarks

Formats a single field, given its pattern character. Subclasses may override this method in order to modify or add formatting capabilities.

Java documentation for android.icu.text.SimpleDateFormat.subFormat(char, int, int, java.text.FieldPosition, android.icu.text.DateFormatSymbols, android.icu.util.Calendar).

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