DateUtils.GetMonthString(Int32, AbbreviationLength) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
deprecated
返回年份月份的本地化字符串。
[Android.Runtime.Register("getMonthString", "(II)Ljava/lang/String;", "")]
[System.Obsolete("deprecated")]
public static string? GetMonthString (int month, Android.Text.Format.AbbreviationLength abbrev);
[<Android.Runtime.Register("getMonthString", "(II)Ljava/lang/String;", "")>]
[<System.Obsolete("deprecated")>]
static member GetMonthString : int * Android.Text.Format.AbbreviationLength -> string
参数
- month
- Int32
其中一个Calendar#JANUARY Calendar.JANUARY
Calendar#FEBRUARY Calendar.FEBRUARY
,等等。
- abbrev
- AbbreviationLength
#LENGTH_LONG
、#LENGTH_MEDIUM
或 #LENGTH_SHORTEST
之一。
未定义的长度将返回 #LENGTH_MEDIUM
,但将来可能会返回其他内容。
返回
年度本地化月份。
- 属性
注解
返回年份月份的本地化字符串。
此成员已弃用。 请改用 java.text.SimpleDateFormat
。
适用于 . 的 android.text.format.DateUtils.getMonthString(int, int)
Java 文档
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。