Language

TimeZoneFormat.Format メソッド

定義

オーバーロード

名前 説明
Format(Object, StringBuffer, FieldPosition)

オブジェクトを書式設定し、結果のテキストを特定の文字列バッファーに追加します。

Format(TimeZoneFormat+Style, TimeZone, Int64)

スタイルの指定した日付のタイム ゾーンの表示名を返します。

Format(TimeZoneFormat+Style, TimeZone, Int64, Output)

スタイルの指定した日付のタイム ゾーンの表示名を返します。

Format(Object, StringBuffer, FieldPosition)

オブジェクトを書式設定し、結果のテキストを特定の文字列バッファーに追加します。

[Android.Runtime.Register("format", "(Ljava/lang/Object;Ljava/lang/StringBuffer;Ljava/text/FieldPosition;)Ljava/lang/StringBuffer;", "GetFormat_Ljava_lang_Object_Ljava_lang_StringBuffer_Ljava_text_FieldPosition_Handler", ApiSince=24)]
public override Java.Lang.StringBuffer? Format(Java.Lang.Object? obj, Java.Lang.StringBuffer? toAppendTo, Java.Text.FieldPosition? pos);
[<Android.Runtime.Register("format", "(Ljava/lang/Object;Ljava/lang/StringBuffer;Ljava/text/FieldPosition;)Ljava/lang/StringBuffer;", "GetFormat_Ljava_lang_Object_Ljava_lang_StringBuffer_Ljava_text_FieldPosition_Handler", ApiSince=24)>]
override this.Format : Java.Lang.Object * Java.Lang.StringBuffer * Java.Text.FieldPosition -> Java.Lang.StringBuffer

パラメーター

obj
Object

書式設定するオブジェクト

toAppendTo
StringBuffer

テキストが追加される場所

pos
FieldPosition

書式設定されたテキスト内のフィールドを識別する FieldPosition

返品

toAppendTo として渡され、書式設定されたテキストが追加された文字列バッファー

属性

注釈

オブジェクトを書式設定し、結果のテキストを特定の文字列バッファーに追加します。 pos 引数が形式によって使用されるフィールドを識別する場合、そのインデックスは、最初に検出されたフィールドの先頭と末尾に設定されます。

Javaドキュメント。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象

Format(TimeZoneFormat+Style, TimeZone, Int64)

スタイルの指定した日付のタイム ゾーンの表示名を返します。

[Android.Runtime.Register("format", "(Landroid/icu/text/TimeZoneFormat$Style;Landroid/icu/util/TimeZone;J)Ljava/lang/String;", "", ApiSince=24)]
public string? Format(Android.Icu.Text.TimeZoneFormat.Style? style, Android.Icu.Util.TimeZone? tz, long date);
[<Android.Runtime.Register("format", "(Landroid/icu/text/TimeZoneFormat$Style;Landroid/icu/util/TimeZone;J)Ljava/lang/String;", "", ApiSince=24)>]
override this.Format : Android.Icu.Text.TimeZoneFormat.Style * Android.Icu.Util.TimeZone * int64 -> string

パラメーター

style
TimeZoneFormat.Style

スタイル列挙型 (GENERIC_LONG、LOCALIZED_GMTなど)

tz
TimeZone

タイム ゾーン。

date
Int64

日付。

返品

タイム ゾーンの表示名。

属性

注釈

スタイルの指定した日付のタイム ゾーンの表示名を返します。 注: スタイルにはフォールバック スタイルが定義されている場合があります。 たとえば、GENERIC_LONGが要求されたが、GENERIC_LONG スタイルに使用できる表示名データがない場合、実装ではGENERIC_LOCATIONまたはLOCALIZED_GMTを使用できます。 詳細については、「UTS#35 UNICODE LOCALE DATA MARKUP LANGUAGE (LDML) 付録 J: タイム ゾーン表示名」を参照してください。

android.icu.text.TimeZoneFormat.formatの Android リファレンス。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象

Format(TimeZoneFormat+Style, TimeZone, Int64, Output)

スタイルの指定した日付のタイム ゾーンの表示名を返します。

[Android.Runtime.Register("format", "(Landroid/icu/text/TimeZoneFormat$Style;Landroid/icu/util/TimeZone;JLandroid/icu/util/Output;)Ljava/lang/String;", "GetFormat_Landroid_icu_text_TimeZoneFormat_Style_Landroid_icu_util_TimeZone_JLandroid_icu_util_Output_Handler", ApiSince=24)]
public virtual string? Format(Android.Icu.Text.TimeZoneFormat.Style? style, Android.Icu.Util.TimeZone? tz, long date, Android.Icu.Util.Output? timeType);
[<Android.Runtime.Register("format", "(Landroid/icu/text/TimeZoneFormat$Style;Landroid/icu/util/TimeZone;JLandroid/icu/util/Output;)Ljava/lang/String;", "GetFormat_Landroid_icu_text_TimeZoneFormat_Style_Landroid_icu_util_TimeZone_JLandroid_icu_util_Output_Handler", ApiSince=24)>]
override this.Format : Android.Icu.Text.TimeZoneFormat.Style * Android.Icu.Util.TimeZone * int64 * Android.Icu.Util.Output -> string

パラメーター

style
TimeZoneFormat.Style

スタイル列挙型 (GENERIC_LONG、LOCALIZED_GMTなど)

tz
TimeZone

タイム ゾーン。

date
Int64

日付。

timeType
Output

表示名に使用される時間型 (標準/夏時間/不明) を受け取るための出力引数。情報が不要な場合は null を指定します。

返品

タイム ゾーンの表示名。

属性

注釈

スタイルの指定した日付のタイム ゾーンの表示名を返します。 このメソッドは、format(Style,TimeZone,long) の引数リストに加えて、追加の引数 Output<TimeType> timeType を受け取ります。 引数は、表示名に実際に使用される時刻の種類 (標準時または夏時間、または不明) を受け取る場合に使用されます。

android.icu.text.TimeZoneFormat.formatの Android リファレンス。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象