DateUtils.GetAMPMString(Int32) Method

Definition

Caution

deprecated

Return a localized string for AM or PM.

[Android.Runtime.Register("getAMPMString", "(I)Ljava/lang/String;", "")]
[System.Obsolete("deprecated")]
public static string? GetAMPMString (int ampm);
[<Android.Runtime.Register("getAMPMString", "(I)Ljava/lang/String;", "")>]
[<System.Obsolete("deprecated")>]
static member GetAMPMString : int -> string

Parameters

ampm
Int32

Either Calendar#AM Calendar.AM or Calendar#PM Calendar.PM.

Returns

Localized version of "AM" or "PM".

Attributes

Exceptions

if the ampm is out of bounds.

Remarks

Return a localized string for AM or PM.

This member is deprecated. Use java.text.SimpleDateFormat instead.

Java documentation for android.text.format.DateUtils.getAMPMString(int).

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