public abstract class CalendarUtils extends Object
Calendar, with the method for obtaining the local
calendar name.| 构造器 | 说明 |
|---|---|
CalendarUtils() |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
static String |
getCalendarName(Calendar cal,
Locale loc) |
Obtains the names of local calendars for a given locale.
|
abstract String |
getCalendarName(Calendar cal,
ULocale loc) |
已过时。
This change is effective since API version 4. Replaced by
getCalendarName(Calendar cal, Locale loc) |
static CalendarUtils |
getInstance() |
已过时。
This change is effective since API version 4.
|
static Calendar |
getPersianCalendar(Locale locale) |
Obtains the Persian calendar for the region represented by
Locale. |
@Deprecated public static CalendarUtils getInstance()
CalendarUtils instance.CalendarUtils.@Deprecated public abstract String getCalendarName(Calendar cal, ULocale loc)
getCalendarName(Calendar cal, Locale loc)cal - Indicates the calendars whose names are to be returned.loc - Indicates the locale for which to return the calendar names.public static String getCalendarName(Calendar cal, Locale loc)
cal - Indicates the calendars whose names are to be returned.loc - Indicates the locale for which to return the calendar names.