Partager via


DateFormat.GetInstanceForSkeleton Method

Definition

Overloads

GetInstanceForSkeleton(String)

<strong>[icu]</strong> Returns a DateFormat object that can be used to format dates and times in the default locale.

GetInstanceForSkeleton(String, ULocale)

<strong>[icu]</strong> Returns a DateFormat object that can be used to format dates and times in the given locale.

GetInstanceForSkeleton(String, Locale)

<strong>[icu]</strong> Returns a DateFormat object that can be used to format dates and times in the given locale.

GetInstanceForSkeleton(Calendar, String, ULocale)

<strong>[icu]</strong> Creates a DateFormat object that can be used to format dates and times in the calendar system specified by cal.

GetInstanceForSkeleton(Calendar, String, Locale)

<strong>[icu]</strong> Creates a DateFormat object that can be used to format dates and times in the calendar system specified by cal.

GetInstanceForSkeleton(String)

<strong>[icu]</strong> Returns a DateFormat object that can be used to format dates and times in the default locale.

[Android.Runtime.Register("getInstanceForSkeleton", "(Ljava/lang/String;)Landroid/icu/text/DateFormat;", "", ApiSince=24)]
public static Android.Icu.Text.DateFormat? GetInstanceForSkeleton (string? skeleton);
[<Android.Runtime.Register("getInstanceForSkeleton", "(Ljava/lang/String;)Landroid/icu/text/DateFormat;", "", ApiSince=24)>]
static member GetInstanceForSkeleton : string -> Android.Icu.Text.DateFormat

Parameters

skeleton
String

The skeleton that selects the fields to be formatted. (Uses the DateTimePatternGenerator.) This can be DateFormat#ABBR_MONTH, DateFormat#MONTH_WEEKDAY_DAY, etc.

Returns

Attributes

Remarks

<strong>[icu]</strong> Returns a DateFormat object that can be used to format dates and times in the default locale.

Java documentation for android.icu.text.DateFormat.getInstanceForSkeleton(java.lang.String).

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

GetInstanceForSkeleton(String, ULocale)

<strong>[icu]</strong> Returns a DateFormat object that can be used to format dates and times in the given locale.

[Android.Runtime.Register("getInstanceForSkeleton", "(Ljava/lang/String;Landroid/icu/util/ULocale;)Landroid/icu/text/DateFormat;", "", ApiSince=24)]
public static Android.Icu.Text.DateFormat? GetInstanceForSkeleton (string? skeleton, Android.Icu.Util.ULocale? locale);
[<Android.Runtime.Register("getInstanceForSkeleton", "(Ljava/lang/String;Landroid/icu/util/ULocale;)Landroid/icu/text/DateFormat;", "", ApiSince=24)>]
static member GetInstanceForSkeleton : string * Android.Icu.Util.ULocale -> Android.Icu.Text.DateFormat

Parameters

skeleton
String

The skeleton that selects the fields to be formatted. (Uses the DateTimePatternGenerator.) This can be DateFormat#ABBR_MONTH, DateFormat#MONTH_WEEKDAY_DAY, etc.

locale
ULocale

The locale for which the date/time format is desired.

Returns

Attributes

Remarks

<strong>[icu]</strong> Returns a DateFormat object that can be used to format dates and times in the given locale.

Java documentation for android.icu.text.DateFormat.getInstanceForSkeleton(java.lang.String, 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

GetInstanceForSkeleton(String, Locale)

<strong>[icu]</strong> Returns a DateFormat object that can be used to format dates and times in the given locale.

[Android.Runtime.Register("getInstanceForSkeleton", "(Ljava/lang/String;Ljava/util/Locale;)Landroid/icu/text/DateFormat;", "", ApiSince=24)]
public static Android.Icu.Text.DateFormat? GetInstanceForSkeleton (string? skeleton, Java.Util.Locale? locale);
[<Android.Runtime.Register("getInstanceForSkeleton", "(Ljava/lang/String;Ljava/util/Locale;)Landroid/icu/text/DateFormat;", "", ApiSince=24)>]
static member GetInstanceForSkeleton : string * Java.Util.Locale -> Android.Icu.Text.DateFormat

Parameters

skeleton
String

The skeleton that selects the fields to be formatted. (Uses the DateTimePatternGenerator.) This can be DateFormat#ABBR_MONTH, DateFormat#MONTH_WEEKDAY_DAY, etc.

locale
Locale

The locale for which the date/time format is desired.

Returns

Attributes

Remarks

<strong>[icu]</strong> Returns a DateFormat object that can be used to format dates and times in the given locale.

Java documentation for android.icu.text.DateFormat.getInstanceForSkeleton(java.lang.String, 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

GetInstanceForSkeleton(Calendar, String, ULocale)

<strong>[icu]</strong> Creates a DateFormat object that can be used to format dates and times in the calendar system specified by cal.

[Android.Runtime.Register("getInstanceForSkeleton", "(Landroid/icu/util/Calendar;Ljava/lang/String;Landroid/icu/util/ULocale;)Landroid/icu/text/DateFormat;", "", ApiSince=24)]
public static Android.Icu.Text.DateFormat? GetInstanceForSkeleton (Android.Icu.Util.Calendar? cal, string? skeleton, Android.Icu.Util.ULocale? locale);
[<Android.Runtime.Register("getInstanceForSkeleton", "(Landroid/icu/util/Calendar;Ljava/lang/String;Landroid/icu/util/ULocale;)Landroid/icu/text/DateFormat;", "", ApiSince=24)>]
static member GetInstanceForSkeleton : Android.Icu.Util.Calendar * string * Android.Icu.Util.ULocale -> Android.Icu.Text.DateFormat

Parameters

cal
Calendar

The calendar system for which a date/time format is desired.

skeleton
String

The skeleton that selects the fields to be formatted. (Uses the DateTimePatternGenerator.) This can be DateFormat#ABBR_MONTH, DateFormat#MONTH_WEEKDAY_DAY, etc.

locale
ULocale

The locale for which the date/time format is desired.

Returns

Attributes

Remarks

<strong>[icu]</strong> Creates a DateFormat object that can be used to format dates and times in the calendar system specified by cal.

Java documentation for android.icu.text.DateFormat.getInstanceForSkeleton(android.icu.util.Calendar, java.lang.String, 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

GetInstanceForSkeleton(Calendar, String, Locale)

<strong>[icu]</strong> Creates a DateFormat object that can be used to format dates and times in the calendar system specified by cal.

[Android.Runtime.Register("getInstanceForSkeleton", "(Landroid/icu/util/Calendar;Ljava/lang/String;Ljava/util/Locale;)Landroid/icu/text/DateFormat;", "", ApiSince=24)]
public static Android.Icu.Text.DateFormat? GetInstanceForSkeleton (Android.Icu.Util.Calendar? cal, string? skeleton, Java.Util.Locale? locale);
[<Android.Runtime.Register("getInstanceForSkeleton", "(Landroid/icu/util/Calendar;Ljava/lang/String;Ljava/util/Locale;)Landroid/icu/text/DateFormat;", "", ApiSince=24)>]
static member GetInstanceForSkeleton : Android.Icu.Util.Calendar * string * Java.Util.Locale -> Android.Icu.Text.DateFormat

Parameters

cal
Calendar

The calendar system for which a date/time format is desired.

skeleton
String

The skeleton that selects the fields to be formatted. (Uses the DateTimePatternGenerator.) This can be DateFormat#ABBR_MONTH, DateFormat#MONTH_WEEKDAY_DAY, etc.

locale
Locale

The locale for which the date/time format is desired.

Returns

Attributes

Remarks

<strong>[icu]</strong> Creates a DateFormat object that can be used to format dates and times in the calendar system specified by cal.

Java documentation for android.icu.text.DateFormat.getInstanceForSkeleton(android.icu.util.Calendar, java.lang.String, 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