Serializable, Cloneable, Comparable<Calendar>public final class EthiopicCalendar extends Calendar
EthiopicCalendar usually should be instantiated using
Calendar.getInstance(ULocale) passing in a ULocale
with the tag "@calendar=ethiopic".
Calendar.WeekData| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static int |
GENBOT |
Constant for ግንቦት, the 9th month of the Ethiopic year.
|
static int |
HAMLE |
Constant for ሐምሌ, the 11th month of the Ethiopic year.
|
static int |
HEDAR |
Constant for ኅዳር, the 3rd month of the Ethiopic year.
|
static int |
MEGABIT |
Constant for መጋቢት, the 7th month of the Ethiopic year.
|
static int |
MESKEREM |
Constant for መስከረም, the 1st month of the Ethiopic year.
|
static int |
MIAZIA |
Constant for ሚያዝያ, the 8th month of the Ethiopic year.
|
static int |
NEHASSE |
Constant for ነሐሴ, the 12th month of the Ethiopic year.
|
static int |
PAGUMEN |
Constant for ጳጉሜን, the 13th month of the Ethiopic year.
|
static int |
SENE |
Constant for ሰኔ, the 10th month of the Ethiopic year.
|
static int |
TAHSAS |
Constant for ታኅሣሥ, the 4th month of the Ethiopic year.
|
static int |
TEKEMT |
Constant for ጥቅምት, the 2nd month of the Ethiopic year.
|
static int |
TER |
Constant for ጥር, the 5th month of the Ethiopic year.
|
static int |
YEKATIT |
Constant for የካቲት, the 6th month of the Ethiopic year.
|
AM, AM_PM, APRIL, AUGUST, BASE_FIELD_COUNT, DATE, DAY_OF_MONTH, DAY_OF_WEEK, DAY_OF_WEEK_IN_MONTH, DAY_OF_YEAR, DECEMBER, DOW_LOCAL, DST_OFFSET, EPOCH_JULIAN_DAY, ERA, EXTENDED_YEAR, FEBRUARY, FRIDAY, GREATEST_MINIMUM, HOUR, HOUR_OF_DAY, INTERNALLY_SET, IS_LEAP_MONTH, JAN_1_1_JULIAN_DAY, JANUARY, JULIAN_DAY, JULY, JUNE, LEAST_MAXIMUM, MARCH, MAX_DATE, MAX_FIELD_COUNT, MAX_JULIAN, MAX_MILLIS, MAXIMUM, MAY, MILLISECOND, MILLISECONDS_IN_DAY, MIN_DATE, MIN_JULIAN, MIN_MILLIS, MINIMUM, MINIMUM_USER_STAMP, MINUTE, MONDAY, MONTH, NOVEMBER, OCTOBER, ONE_DAY, ONE_HOUR, ONE_MINUTE, ONE_SECOND, ONE_WEEK, PM, RESOLVE_REMAP, SATURDAY, SECOND, SEPTEMBER, SUNDAY, THURSDAY, TUESDAY, UNDECIMBER, UNSET, WALLTIME_FIRST, WALLTIME_LAST, WALLTIME_NEXT_VALID, WEDNESDAY, WEEK_OF_MONTH, WEEK_OF_YEAR, YEAR, YEAR_WOY, ZONE_OFFSET| 构造器 | 说明 |
|---|---|
EthiopicCalendar() |
Constructs a default
EthiopicCalendar using the current time
in the default time zone with the default locale. |
EthiopicCalendar(int year,
int month,
int date) |
Constructs a
EthiopicCalendar with the given date set
in the default time zone with the default locale. |
EthiopicCalendar(int year,
int month,
int date,
int hour,
int minute,
int second) |
Constructs a
EthiopicCalendar with the given date
and time set for the default time zone with the default locale. |
EthiopicCalendar(Date date) |
Constructs a
EthiopicCalendar with the given date set
in the default time zone with the default locale. |
EthiopicCalendar(Locale aLocale) |
Constructs a
EthiopicCalendar based on the current time
in the default time zone with the given locale. |
EthiopicCalendar(TimeZone zone) |
Constructs a
EthiopicCalendar based on the current time
in the given time zone with the default locale. |
EthiopicCalendar(TimeZone zone,
Locale aLocale) |
Constructs a
EthiopicCalendar based on the current time
in the given time zone with the given locale. |
EthiopicCalendar(TimeZone zone,
ULocale locale) |
Constructs a
EthiopicCalendar based on the current time
in the given time zone with the given locale. |
EthiopicCalendar(ULocale locale) |
Constructs a
EthiopicCalendar based on the current time
in the default time zone with the given locale. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
String |
getType() |
[icu] Returns the calendar type name string for this Calendar object.
|
protected void |
handleComputeFields(int julianDay) |
已过时。
This API is ICU internal only.
|
protected int |
handleComputeMonthStart(int eyear,
int emonth,
boolean useMonth) |
Return JD of start of given month/extended year
|
protected int |
handleGetExtendedYear() |
已过时。
This API is ICU internal only.
|
protected int |
handleGetLimit(int field,
int limitType) |
已过时。
This API is ICU internal only.
|
boolean |
isAmeteAlemEra() |
Return true if this calendar is set to the Amete Alem era.
|
void |
setAmeteAlemEra(boolean onOff) |
Set Alem or Mihret era.
|
add, after, before, clear, clear, clone, compareTo, complete, computeFields, computeGregorianFields, computeGregorianMonthStart, computeJulianDay, computeMillisInDay, computeTime, computeZoneOffset, equals, fieldDifference, fieldName, floorDivide, floorDivide, floorDivide, floorDivide, get, getActualMaximum, getActualMinimum, getAvailableLocales, getDateTimeFormat, getDateTimeFormat, getDisplayName, getDisplayName, getFieldCount, getFieldResolutionTable, getFirstDayOfWeek, getGreatestMinimum, getGregorianDayOfMonth, getGregorianDayOfYear, getGregorianMonth, getGregorianYear, getInstance, getInstance, getInstance, getInstance, getInstance, getInstance, getKeywordValuesForLocale, getLeastMaximum, getLimit, getMaximum, getMinimalDaysInFirstWeek, getMinimum, getRepeatedWallTimeOption, getSkippedWallTimeOption, getStamp, getTime, getTimeInMillis, getTimeZone, getWeekData, getWeekDataForRegion, gregorianMonthLength, gregorianPreviousMonthLength, handleComputeJulianDay, handleCreateFields, handleGetDateFormat, handleGetDateFormat, handleGetDateFormat, handleGetMonthLength, handleGetYearLength, hashCode, internalGet, internalGet, internalGetTimeInMillis, internalSet, isEquivalentTo, isGregorianLeapYear, isLenient, isSet, isWeekend, isWeekend, julianDayToDayOfWeek, julianDayToMillis, millisToJulianDay, newerField, newestStamp, pinField, prepareGetActual, resolveFields, roll, roll, set, set, set, set, setFirstDayOfWeek, setLenient, setMinimalDaysInFirstWeek, setRepeatedWallTimeOption, setSkippedWallTimeOption, setTime, setTimeInMillis, setTimeZone, setWeekData, toString, validateField, validateField, validateFields, weekNumber, weekNumberpublic static final int GENBOT
public static final int HAMLE
public static final int HEDAR
public static final int MEGABIT
public static final int MESKEREM
public static final int MIAZIA
public static final int NEHASSE
public static final int PAGUMEN
public static final int SENE
public static final int TAHSAS
public static final int TEKEMT
public static final int TER
public static final int YEKATIT
public EthiopicCalendar()
EthiopicCalendar using the current time
in the default time zone with the default locale.public EthiopicCalendar(TimeZone zone)
EthiopicCalendar based on the current time
in the given time zone with the default locale.zone - The time zone for the new calendar.public EthiopicCalendar(Locale aLocale)
EthiopicCalendar based on the current time
in the default time zone with the given locale.aLocale - The locale for the new calendar.public EthiopicCalendar(ULocale locale)
EthiopicCalendar based on the current time
in the default time zone with the given locale.locale - The icu locale for the new calendar.public EthiopicCalendar(TimeZone zone, Locale aLocale)
EthiopicCalendar based on the current time
in the given time zone with the given locale.zone - The time zone for the new calendar.aLocale - The locale for the new calendar.public EthiopicCalendar(TimeZone zone, ULocale locale)
EthiopicCalendar based on the current time
in the given time zone with the given locale.zone - The time zone for the new calendar.locale - The icu locale for the new calendar.public EthiopicCalendar(int year,
int month,
int date)
EthiopicCalendar with the given date set
in the default time zone with the default locale.public EthiopicCalendar(Date date)
EthiopicCalendar with the given date set
in the default time zone with the default locale.date - The date to which the new calendar is set.public EthiopicCalendar(int year,
int month,
int date,
int hour,
int minute,
int second)
EthiopicCalendar with the given date
and time set for the default time zone with the default locale.year - The value used to set the calendar's YEAR time field.month - The value used to set the calendar's MONTH time field.
The value is 0-based. e.g., 0 for Meskerem.date - The value used to set the calendar's DATE time field.hour - The value used to set the calendar's HOUR_OF_DAY time field.minute - The value used to set the calendar's MINUTE time field.second - The value used to set the calendar's SECOND time field.public String getType()
See type="old type name" for the calendar attribute of locale IDs at http://www.unicode.org/reports/tr35/#Key_Type_Definitions
public void setAmeteAlemEra(boolean onOff)
onOff - Set Amete Alem era if true, otherwise set Amete Mihret era.public boolean isAmeteAlemEra()
@Deprecated protected int handleGetExtendedYear()
handleGetExtendedYear 在类中 Calendar@Deprecated protected void handleComputeFields(int julianDay)
In addition, subclasses should compute any subclass-specific fields, that is, fields from BASE_FIELD_COUNT to getFieldCount() - 1.
The default implementation in Calendar implements
a pure proleptic Gregorian calendar.
handleComputeFields 在类中 Calendar@Deprecated protected int handleGetLimit(int field, int limitType)
ERA YEAR MONTH WEEK_OF_YEAR WEEK_OF_MONTH DAY_OF_MONTH DAY_OF_YEAR DAY_OF_WEEK_IN_MONTH YEAR_WOY EXTENDED_YEAR
handleGetLimit 在类中 Calendarfield - one of the above field numberslimitType - one of MINIMUM, GREATEST_MINIMUM,
LEAST_MAXIMUM, or MAXIMUMprotected int handleComputeMonthStart(int eyear,
int emonth,
boolean useMonth)
handleComputeMonthStart 在类中 Calendareyear - the extended yearemonth - the zero-based month, or 0 if useMonth is falseuseMonth - if false, compute the day before the first day of
the given year, otherwise, compute the day before the first day of
the given month