Udostępnij za pośrednictwem


DateFormat.GetTimeFormat(Context) Method

Definition

Returns a java.text.DateFormat object that can format the time according to the context's locale and the user's 12-/24-hour clock preference.

[Android.Runtime.Register("getTimeFormat", "(Landroid/content/Context;)Ljava/text/DateFormat;", "")]
public static Java.Text.DateFormat? GetTimeFormat (Android.Content.Context? context);
[<Android.Runtime.Register("getTimeFormat", "(Landroid/content/Context;)Ljava/text/DateFormat;", "")>]
static member GetTimeFormat : Android.Content.Context -> Java.Text.DateFormat

Parameters

context
Context

the application context

Returns

the java.text.DateFormat object that properly formats the time.

Attributes

Remarks

Returns a java.text.DateFormat object that can format the time according to the context's locale and the user's 12-/24-hour clock preference.

Java documentation for android.text.format.DateFormat.getTimeFormat(android.content.Context).

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