語言

Calendar.GetDateTimeFormat 方法

定義

多載

名稱 Description
GetDateTimeFormat(DateFormatStyle, Int32, ULocale)

[加護病房] 回傳此行事曆的適當值 DateFormat 。

GetDateTimeFormat(DateFormatStyle, Int32, Locale)

[加護病房] 回傳此行事曆的適當值 DateFormat 。

GetDateTimeFormat(DateFormatStyle, Int32, ULocale)

[加護病房] 回傳此行事曆的適當值 DateFormat 。

[Android.Runtime.Register("getDateTimeFormat", "(IILandroid/icu/util/ULocale;)Landroid/icu/text/DateFormat;", "GetGetDateTimeFormat_IILandroid_icu_util_ULocale_Handler", ApiSince=24)]
public virtual Android.Icu.Text.DateFormat? GetDateTimeFormat(Android.Icu.Text.DateFormatStyle dateStyle, int timeStyle, Android.Icu.Util.ULocale? loc);
[<Android.Runtime.Register("getDateTimeFormat", "(IILandroid/icu/util/ULocale;)Landroid/icu/text/DateFormat;", "GetGetDateTimeFormat_IILandroid_icu_util_ULocale_Handler", ApiSince=24)>]
abstract member GetDateTimeFormat : Android.Icu.Text.DateFormatStyle * int * Android.Icu.Util.ULocale -> Android.Icu.Text.DateFormat
override this.GetDateTimeFormat : Android.Icu.Text.DateFormatStyle * int * Android.Icu.Util.ULocale -> Android.Icu.Text.DateFormat

參數

dateStyle
DateFormatStyle

日期格式樣式,或 None 省略日期。

timeStyle
Int32

時間格式格式:0代表完整,1代表長,2代表中,3代表短時間,或 -1 省略時間。

loc
ULocale

所使用的地點、日期、時間、模式及符號。

傳回

一個以此行事曆及所要求語系與樣式配置的日期格式工具。

屬性

備註

[加護病房] 回傳此行事曆的適當值 DateFormat 。 想要專精此行為的子職業應覆蓋 #handleGetDateFormat。

Java 文件 android.icu.util.Calendar.getDateTimeFormat(int, int, android.icu.util.ULocale)。

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

適用於

GetDateTimeFormat(DateFormatStyle, Int32, Locale)

[加護病房] 回傳此行事曆的適當值 DateFormat 。

[Android.Runtime.Register("getDateTimeFormat", "(IILjava/util/Locale;)Landroid/icu/text/DateFormat;", "GetGetDateTimeFormat_IILjava_util_Locale_Handler", ApiSince=24)]
public virtual Android.Icu.Text.DateFormat? GetDateTimeFormat(Android.Icu.Text.DateFormatStyle dateStyle, int timeStyle, Java.Util.Locale? loc);
[<Android.Runtime.Register("getDateTimeFormat", "(IILjava/util/Locale;)Landroid/icu/text/DateFormat;", "GetGetDateTimeFormat_IILjava_util_Locale_Handler", ApiSince=24)>]
abstract member GetDateTimeFormat : Android.Icu.Text.DateFormatStyle * int * Java.Util.Locale -> Android.Icu.Text.DateFormat
override this.GetDateTimeFormat : Android.Icu.Text.DateFormatStyle * int * Java.Util.Locale -> Android.Icu.Text.DateFormat

參數

dateStyle
DateFormatStyle

日期格式樣式,或 None 省略日期。

timeStyle
Int32

時間格式格式:0代表完整,1代表長,2代表中,3代表短時間,或 -1 省略時間。

loc
Locale

所使用的地點、日期、時間、模式及符號。

傳回

一個以此行事曆及所要求語系與樣式配置的日期格式工具。

屬性

備註

[加護病房] 回傳此行事曆的適當值 DateFormat 。 想要專精此行為的子職業應覆蓋 #handleGetDateFormat。

Java 文件 android.icu.util.Calendar.getDateTimeFormat(int, int, java.util.Locale)。

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

適用於