語言

SimpleDateFormat 建構函式

定義

多載

名稱 Description
SimpleDateFormat()

利用預設 FORMAT 區域的預設模式構建 SimpleDateFormat。

SimpleDateFormat(String)

在預設 FORMAT 區域使用給定模式構建 SimpleDateFormat。

SimpleDateFormat(IntPtr, JniHandleOwnership)
SimpleDateFormat(String, DateFormatSymbols)

利用給定的圖案及特定區域符號資料構建 SimpleDateFormat。

SimpleDateFormat(String, ULocale)

利用給定的模式與地點構建 SimpleDateFormat。

SimpleDateFormat(String, Locale)

利用給定的模式與地點構建 SimpleDateFormat。

SimpleDateFormat(String, String, ULocale)

利用給定的模式、覆寫和地點構建一個 SimpleDateFormat。

SimpleDateFormat()

利用預設 FORMAT 區域的預設模式構建 SimpleDateFormat。

[Android.Runtime.Register(".ctor", "()V", "", ApiSince=24)]
public SimpleDateFormat();
屬性

備註

利用預設 FORMAT 區域的預設模式構建 SimpleDateFormat。 <b>注意:</b> 並非所有地區都支援 SimpleDateFormat;為了更通用,請使用 DateFormat 類別中的工廠方法。

Java 文件 android.icu.text.SimpleDateFormat.SimpleDateFormat()。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

SimpleDateFormat(String)

在預設 FORMAT 區域使用給定模式構建 SimpleDateFormat。

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "", ApiSince=24)]
public SimpleDateFormat(string? pattern);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "", ApiSince=24)>]
new Android.Icu.Text.SimpleDateFormat : string -> Android.Icu.Text.SimpleDateFormat

參數

pattern
String
屬性

備註

在預設 FORMAT 區域使用給定模式構建 SimpleDateFormat。 <b>注意:</b> 並非所有地區都支援 SimpleDateFormat;為了更通用,請使用 DateFormat 類別中的工廠方法。

Java 文件 android.icu.text.SimpleDateFormat.SimpleDateFormat(java.lang.String)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

SimpleDateFormat(IntPtr, JniHandleOwnership)

protected SimpleDateFormat(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Icu.Text.SimpleDateFormat : nativeint * Android.Runtime.JniHandleOwnership -> Android.Icu.Text.SimpleDateFormat

參數

javaReference
IntPtr

nativeint

備註

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

SimpleDateFormat(String, DateFormatSymbols)

利用給定的圖案及特定區域符號資料構建 SimpleDateFormat。

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Landroid/icu/text/DateFormatSymbols;)V", "", ApiSince=24)]
public SimpleDateFormat(string? pattern, Android.Icu.Text.DateFormatSymbols? formatData);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Landroid/icu/text/DateFormatSymbols;)V", "", ApiSince=24)>]
new Android.Icu.Text.SimpleDateFormat : string * Android.Icu.Text.DateFormatSymbols -> Android.Icu.Text.SimpleDateFormat

參數

pattern
String
formatData
DateFormatSymbols
屬性

備註

利用給定的圖案及特定區域符號資料構建 SimpleDateFormat。 警告:數字使用預設 FORMAT 地點!

Java 文件 android.icu.text.SimpleDateFormat.SimpleDateFormat(java.lang.String, android.icu.text.DateFormatSymbols)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

SimpleDateFormat(String, ULocale)

利用給定的模式與地點構建 SimpleDateFormat。

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Landroid/icu/util/ULocale;)V", "", ApiSince=24)]
public SimpleDateFormat(string? pattern, Android.Icu.Util.ULocale? loc);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Landroid/icu/util/ULocale;)V", "", ApiSince=24)>]
new Android.Icu.Text.SimpleDateFormat : string * Android.Icu.Util.ULocale -> Android.Icu.Text.SimpleDateFormat

參數

pattern
String
loc
ULocale
屬性

備註

利用給定的模式與地點構建 SimpleDateFormat。 <b>注意:</b> 並非所有地區都支援 SimpleDateFormat;為了更通用,請使用 DateFormat 類別中的工廠方法。

Java 文件 android.icu.text.SimpleDateFormat.SimpleDateFormat(java.lang.String, android.icu.util.ULocale)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

SimpleDateFormat(String, Locale)

利用給定的模式與地點構建 SimpleDateFormat。

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/util/Locale;)V", "", ApiSince=24)]
public SimpleDateFormat(string? pattern, Java.Util.Locale? loc);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/util/Locale;)V", "", ApiSince=24)>]
new Android.Icu.Text.SimpleDateFormat : string * Java.Util.Locale -> Android.Icu.Text.SimpleDateFormat

參數

pattern
String
loc
Locale
屬性

備註

利用給定的模式與地點構建 SimpleDateFormat。 <b>注意:</b> 並非所有地區都支援 SimpleDateFormat;為了更通用,請使用 DateFormat 類別中的工廠方法。

Java 文件 android.icu.text.SimpleDateFormat.SimpleDateFormat(java.lang.String, java.util.Locale)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

SimpleDateFormat(String, String, ULocale)

利用給定的模式、覆寫和地點構建一個 SimpleDateFormat。

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;Landroid/icu/util/ULocale;)V", "", ApiSince=24)]
public SimpleDateFormat(string? pattern, string? override, Android.Icu.Util.ULocale? loc);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;Landroid/icu/util/ULocale;)V", "", ApiSince=24)>]
new Android.Icu.Text.SimpleDateFormat : string * string * Android.Icu.Util.ULocale -> Android.Icu.Text.SimpleDateFormat

參數

pattern
String

所使用的圖案

override
String

覆寫串。 編號系統覆寫字串可以有以下形式之一:1.) 若僅指定編號系統名稱,則適用於日期格式中所有數字欄位。 2) 。 若要逐欄指定替代編號系統,請使用圖案中的欄位字母,接著 = 符號,再接編號系統名稱。 例如,若要指定年份僅用希伯來數字格式化,請使用覆寫「y=hebr」。 多個覆寫可透過分號分隔,在單一字串中指定。 例如,覆寫字串「m=thai;y=deva」會以泰文數字表示月份,天城文數字表示年份。

loc
ULocale

所選地點

屬性

備註

利用給定的模式、覆寫和地點構建一個 SimpleDateFormat。

Java 文件 android.icu.text.SimpleDateFormat.SimpleDateFormat(java.lang.String, java.lang.String, android.icu.util.ULocale)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於