語言

DateUtils.GetDayOfWeekString(Int32, AbbreviationLength) 方法

定義

警告

deprecated

退回一串該週的線。

[Android.Runtime.Register("getDayOfWeekString", "(II)Ljava/lang/String;", "")]
[System.Obsolete("deprecated")]
public static string? GetDayOfWeekString(int dayOfWeek, Android.Text.Format.AbbreviationLength abbrev);
[<Android.Runtime.Register("getDayOfWeekString", "(II)Ljava/lang/String;", "")>]
[<System.Obsolete("deprecated")>]
static member GetDayOfWeekString : int * Android.Text.Format.AbbreviationLength -> string

參數

dayOfWeek
Int32

其中一個 Calendar#SUNDAY Calendar.SUNDAY、、 Calendar#MONDAY Calendar.MONDAY等等。

abbrev
AbbreviationLength

其中#LENGTH_LONG#LENGTH_SHORT#LENGTH_MEDIUM#LENGTH_SHORTEST。 請注意,在大多數語言中, 會#LENGTH_SHORT回傳與 相同的結果。#LENGTH_MEDIUM 未定義的長度會回歸 #LENGTH_MEDIUM ,但未來可能會有不同的結果。

傳回

屬性

例外狀況

如果星期幾不允許。

備註

退回一串該週的線。

此會員已被棄用。 請改用 java.text.SimpleDateFormat

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

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

適用於