語言

DateUtils.GetMonthString(Int32, AbbreviationLength) 方法

定義

警告

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

Java 文件 android.text.format.DateUtils.getMonthString(int, int)

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於