Język

Calendar.GetDateTimeFormat Method

Definition

Overloads

Name Description
GetDateTimeFormat(DateFormatStyle, Int32, ULocale)

<strong>[icu]</strong> Returns a DateFormat appropriate to this calendar.

GetDateTimeFormat(DateFormatStyle, Int32, Locale)

<strong>[icu]</strong> Returns a DateFormat appropriate to this calendar.

GetDateTimeFormat(DateFormatStyle, Int32, ULocale)

<strong>[icu]</strong> Returns a DateFormat appropriate to this calendar.

[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

Parameters

dateStyle
DateFormatStyle

The date format style, or -1 to omit the date.

timeStyle
Int32

The time format style: 0 for full, 1 for long, 2 for medium, 3 for short, or -1 to omit the time.

loc
ULocale

The locale whose date and time patterns and symbols are used.

Returns

A date formatter configured with this calendar and the requested locale and styles.

Attributes

Remarks

<strong>[icu]</strong> Returns a DateFormat appropriate to this calendar. Subclasses wishing to specialize this behavior should override #handleGetDateFormat.

Java documentation for android.icu.util.Calendar.getDateTimeFormat(int, int, android.icu.util.ULocale).

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

GetDateTimeFormat(DateFormatStyle, Int32, Locale)

<strong>[icu]</strong> Returns a DateFormat appropriate to this calendar.

[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

Parameters

dateStyle
DateFormatStyle

The date format style, or -1 to omit the date.

timeStyle
Int32

The time format style: 0 for full, 1 for long, 2 for medium, 3 for short, or -1 to omit the time.

loc
Locale

The locale whose date and time patterns and symbols are used.

Returns

A date formatter configured with this calendar and the requested locale and styles.

Attributes

Remarks

<strong>[icu]</strong> Returns a DateFormat appropriate to this calendar. Subclasses wishing to specialize this behavior should override #handleGetDateFormat.

Java documentation for android.icu.util.Calendar.getDateTimeFormat(int, int, java.util.Locale).

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