# Print output for @column tags ?>
public
final
class
EthiopicCalendar
extends Calendar
java.lang.Object | ||
↳ | android.icu.util.Calendar | |
↳ | android.icu.util.EthiopicCalendar |
Implement the Ethiopic calendar system.
EthiopicCalendar usually should be instantiated using
Calendar.getInstance(ULocale)
passing in a ULocale
with the tag "@calendar=ethiopic"
.
See also:
Constants | |
---|---|
int |
GENBOT
Constant for ግንቦት, the 9th month of the Ethiopic year. |
int |
HAMLE
Constant for ሐምሌ, the 11th month of the Ethiopic year. |
int |
HEDAR
Constant for ኅዳር, the 3rd month of the Ethiopic year. |
int |
MEGABIT
Constant for መጋቢት, the 7th month of the Ethiopic year. |
int |
MESKEREM
Constant for መስከረም, the 1st month of the Ethiopic year. |
int |
MIAZIA
Constant for ሚያዝያ, the 8th month of the Ethiopic year. |
int |
NEHASSE
Constant for ነሐሴ, the 12th month of the Ethiopic year. |
int |
PAGUMEN
Constant for ጳጉሜን, the 13th month of the Ethiopic year. |
int |
SENE
Constant for ሰኔ, the 10th month of the Ethiopic year. |
int |
TAHSAS
Constant for ታኅሣሥ, the 4th month of the Ethiopic year. |
int |
TEKEMT
Constant for ጥቅምት, the 2nd month of the Ethiopic year. |
int |
TER
Constant for ጥር, the 5th month of the Ethiopic year. |
int |
YEKATIT
Constant for የካቲት, the 6th month of the Ethiopic year. |
Inherited constants |
---|
Inherited fields |
---|
Public constructors | |
---|---|
EthiopicCalendar()
Constructs a default |
|
EthiopicCalendar(TimeZone zone)
Constructs a |
|
EthiopicCalendar(Locale aLocale)
Constructs a |
|
EthiopicCalendar(ULocale locale)
Constructs a |
|
EthiopicCalendar(TimeZone zone, Locale aLocale)
Constructs a |
|
EthiopicCalendar(TimeZone zone, ULocale locale)
Constructs a |
|
EthiopicCalendar(int year, int month, int date)
Constructs a |
|
EthiopicCalendar(Date date)
Constructs a |
|
EthiopicCalendar(int year, int month, int date, int hour, int minute, int second)
Constructs a |
Public methods | |
---|---|
String
|
getType()
[icu] Returns the calendar type name string for this Calendar object. |
boolean
|
isAmeteAlemEra()
Return true if this calendar is set to the Amete Alem era. |
void
|
setAmeteAlemEra(boolean onOff)
Set Alem or Mihret era. |
Protected methods | |
---|---|
int
|
handleComputeMonthStart(int eyear, int emonth, boolean useMonth)
Return JD of start of given month/extended year |
Inherited methods | |
---|---|
public static final int GENBOT
Constant for ግንቦት, the 9th month of the Ethiopic year.
Constant Value: 8 (0x00000008)
public static final int HAMLE
Constant for ሐምሌ, the 11th month of the Ethiopic year.
Constant Value: 10 (0x0000000a)
public static final int HEDAR
Constant for ኅዳር, the 3rd month of the Ethiopic year.
Constant Value: 2 (0x00000002)
public static final int MEGABIT
Constant for መጋቢት, the 7th month of the Ethiopic year.
Constant Value: 6 (0x00000006)
public static final int MESKEREM
Constant for መስከረም, the 1st month of the Ethiopic year.
Constant Value: 0 (0x00000000)
public static final int MIAZIA
Constant for ሚያዝያ, the 8th month of the Ethiopic year.
Constant Value: 7 (0x00000007)
public static final int NEHASSE
Constant for ነሐሴ, the 12th month of the Ethiopic year.
Constant Value: 11 (0x0000000b)
public static final int PAGUMEN
Constant for ጳጉሜን, the 13th month of the Ethiopic year.
Constant Value: 12 (0x0000000c)
public static final int SENE
Constant for ሰኔ, the 10th month of the Ethiopic year.
Constant Value: 9 (0x00000009)
public static final int TAHSAS
Constant for ታኅሣሥ, the 4th month of the Ethiopic year.
Constant Value: 3 (0x00000003)
public static final int TEKEMT
Constant for ጥቅምት, the 2nd month of the Ethiopic year.
Constant Value: 1 (0x00000001)
public static final int TER
Constant for ጥር, the 5th month of the Ethiopic year.
Constant Value: 4 (0x00000004)
public static final int YEKATIT
Constant for የካቲት, the 6th month of the Ethiopic year.
Constant Value: 5 (0x00000005)
public EthiopicCalendar ()
Constructs a default EthiopicCalendar
using the current time
in the default time zone with the default locale.
public EthiopicCalendar (TimeZone zone)
Constructs a EthiopicCalendar
based on the current time
in the given time zone with the default locale.
Parameters | |
---|---|
zone |
TimeZone : The time zone for the new calendar. |
public EthiopicCalendar (Locale aLocale)
Constructs a EthiopicCalendar
based on the current time
in the default time zone with the given locale.
Parameters | |
---|---|
aLocale |
Locale : The locale for the new calendar. |
public EthiopicCalendar (ULocale locale)
Constructs a EthiopicCalendar
based on the current time
in the default time zone with the given locale.
Parameters | |
---|---|
locale |
ULocale : The icu locale for the new calendar. |
public EthiopicCalendar (TimeZone zone, Locale aLocale)
Constructs a EthiopicCalendar
based on the current time
in the given time zone with the given locale.
Parameters | |
---|---|
zone |
TimeZone : The time zone for the new calendar. |
aLocale |
Locale : The locale for the new calendar. |
public EthiopicCalendar (TimeZone zone, ULocale locale)
Constructs a EthiopicCalendar
based on the current time
in the given time zone with the given locale.
Parameters | |
---|---|
zone |
TimeZone : The time zone for the new calendar. |
locale |
ULocale : The icu locale for the new calendar. |
public EthiopicCalendar (int year, int month, int date)
Constructs a EthiopicCalendar
with the given date set
in the default time zone with the default locale.
Parameters | |
---|---|
year |
int : The value used to set the calendar's YEAR time field. |
month |
int : The value used to set the calendar's MONTH time field.
The value is 0-based. e.g., 0 for Meskerem. |
date |
int : The value used to set the calendar's DATE time field. |
public EthiopicCalendar (Date date)
Constructs a EthiopicCalendar
with the given date set
in the default time zone with the default locale.
Parameters | |
---|---|
date |
Date : The date to which the new calendar is set. |
public 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.
Parameters | |
---|---|
year |
int : The value used to set the calendar's YEAR time field. |
month |
int : The value used to set the calendar's MONTH time field.
The value is 0-based. e.g., 0 for Meskerem. |
date |
int : The value used to set the calendar's DATE time field. |
hour |
int : The value used to set the calendar's HOUR_OF_DAY time field. |
minute |
int : The value used to set the calendar's MINUTE time field. |
second |
int : The value used to set the calendar's SECOND time field. |
public String getType ()
[icu] Returns the calendar type name string for this Calendar object. The returned string is the legacy ICU calendar attribute value, for example, "gregorian" or "japanese".
See type="old type name" for the calendar attribute of locale IDs at http://www.unicode.org/reports/tr35/#Key_Type_Definitions
Returns | |
---|---|
String |
legacy calendar type name string |
public boolean isAmeteAlemEra ()
Return true if this calendar is set to the Amete Alem era.
Returns | |
---|---|
boolean |
true if set to the Amete Alem era. |
public void setAmeteAlemEra (boolean onOff)
Set Alem or Mihret era.
Parameters | |
---|---|
onOff |
boolean : Set Amete Alem era if true, otherwise set Amete Mihret era. |
protected int handleComputeMonthStart (int eyear, int emonth, boolean useMonth)
Return JD of start of given month/extended year
Parameters | |
---|---|
eyear |
int : the extended year |
emonth |
int : the zero-based month, or 0 if useMonth is false |
useMonth |
boolean : 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 |
Returns | |
---|---|
int |
the Julian day number of the day before the first day of the given month and year |