com.ibm.icu.util

Class EthiopicCalendar

public final class EthiopicCalendar extends CECalendar

Implement the Ethiopic calendar system.

EthiopicCalendar usually should be instantiated using {@link com.ibm.icu.util.Calendar#getInstance(ULocale)} passing in a ULocale with the tag "@calendar=ethiopic".

See Also: Calendar

UNKNOWN: ICU 3.4 This API might change or be removed in a future release.

Field Summary
static intGENBOT
Constant for ግንቦት, the 9th month of the Ethiopic year.
static intHAMLE
Constant for ሐምሌ, the 11th month of the Ethiopic year.
static intHEDAR
Constant for ኅዳር, the 3rd month of the Ethiopic year.
static intMEGABIT
Constant for መጋቢት, the 7th month of the Ethiopic year.
static intMESKEREM
Constant for መስከረም, the 1st month of the Ethiopic year.
static intMIAZIA
Constant for ሚያዝያ, the 8th month of the Ethiopic year.
static intNEHASSE
Constant for ነሐሴ, the 12th month of the Ethiopic year.
static intPAGUMEN
Constant for ጳጉሜን, the 13th month of the Ethiopic year.
static intSENE
Constant for ሰኔ, the 10th month of the Ethiopic year.
static intTAHSAS
Constant for ታኅሣሥ, the 4th month of the Ethiopic year.
static intTEKEMT
Constant for ጥቅምት, the 2nd month of the Ethiopic year.
static intTER
Constant for ጥር, the 5th month of the Ethiopic year.
static intYEKATIT
Constant for የካቲት, the 6th month of the Ethiopic year.
Constructor Summary
EthiopicCalendar()
Constructs a default EthiopicCalendar using the current time in the default time zone with the default locale.
EthiopicCalendar(TimeZone zone)
Constructs a EthiopicCalendar based on the current time in the given 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(ULocale locale)
Constructs a EthiopicCalendar based on the current time in the default time zone with the given 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(int year, int month, int date)
Constructs a EthiopicCalendar with the given date set in 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(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.
Method Summary
static intEthiopicToJD(long year, int month, int date)
Convert an Ethiopic year, month, and day to a Julian day.
static Integer[]getDateFromJD(int julianDay)
StringgetType()
Return the current Calendar type.
booleanisAmeteAlemEra()
Return true if this calendar is set to the Amete Alem era.
voidsetAmeteAlemEra(boolean onOff)
Set Alem or Mihret era.

Field Detail

GENBOT

public static final int GENBOT
Constant for ግንቦት, the 9th month of the Ethiopic year.

UNKNOWN: ICU 3.4 This API might change or be removed in a future release.

HAMLE

public static final int HAMLE
Constant for ሐምሌ, the 11th month of the Ethiopic year.

UNKNOWN: ICU 3.4 This API might change or be removed in a future release.

HEDAR

public static final int HEDAR
Constant for ኅዳር, the 3rd month of the Ethiopic year.

UNKNOWN: ICU 3.4 This API might change or be removed in a future release.

MEGABIT

public static final int MEGABIT
Constant for መጋቢት, the 7th month of the Ethiopic year.

UNKNOWN: ICU 3.4 This API might change or be removed in a future release.

MESKEREM

public static final int MESKEREM
Constant for መስከረም, the 1st month of the Ethiopic year.

UNKNOWN: ICU 3.4 This API might change or be removed in a future release.

MIAZIA

public static final int MIAZIA
Constant for ሚያዝያ, the 8th month of the Ethiopic year.

UNKNOWN: ICU 3.4 This API might change or be removed in a future release.

NEHASSE

public static final int NEHASSE
Constant for ነሐሴ, the 12th month of the Ethiopic year.

UNKNOWN: ICU 3.4 This API might change or be removed in a future release.

PAGUMEN

public static final int PAGUMEN
Constant for ጳጉሜን, the 13th month of the Ethiopic year.

UNKNOWN: ICU 3.4 This API might change or be removed in a future release.

SENE

public static final int SENE
Constant for ሰኔ, the 10th month of the Ethiopic year.

UNKNOWN: ICU 3.4 This API might change or be removed in a future release.

TAHSAS

public static final int TAHSAS
Constant for ታኅሣሥ, the 4th month of the Ethiopic year.

UNKNOWN: ICU 3.4 This API might change or be removed in a future release.

TEKEMT

public static final int TEKEMT
Constant for ጥቅምት, the 2nd month of the Ethiopic year.

UNKNOWN: ICU 3.4 This API might change or be removed in a future release.

TER

public static final int TER
Constant for ጥር, the 5th month of the Ethiopic year.

UNKNOWN: ICU 3.4 This API might change or be removed in a future release.

YEKATIT

public static final int YEKATIT
Constant for የካቲት, the 6th month of the Ethiopic year.

UNKNOWN: ICU 3.4 This API might change or be removed in a future release.

Constructor Detail

EthiopicCalendar

public EthiopicCalendar()
Constructs a default EthiopicCalendar using the current time in the default time zone with the default locale.

UNKNOWN: ICU 3.4 This API might change or be removed in a future release.

EthiopicCalendar

public EthiopicCalendar(TimeZone zone)
Constructs a EthiopicCalendar based on the current time in the given time zone with the default locale.

Parameters: zone The time zone for the new calendar.

UNKNOWN: ICU 3.4 This API might change or be removed in a future release.

EthiopicCalendar

public EthiopicCalendar(Locale aLocale)
Constructs a EthiopicCalendar based on the current time in the default time zone with the given locale.

Parameters: aLocale The locale for the new calendar.

UNKNOWN: ICU 3.4 This API might change or be removed in a future release.

EthiopicCalendar

public EthiopicCalendar(ULocale locale)
Constructs a EthiopicCalendar based on the current time in the default time zone with the given locale.

Parameters: locale The icu locale for the new calendar.

UNKNOWN: ICU 3.4 This API might change or be removed in a future release.

EthiopicCalendar

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 The time zone for the new calendar. aLocale The locale for the new calendar.

UNKNOWN: ICU 3.4 This API might change or be removed in a future release.

EthiopicCalendar

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 The time zone for the new calendar. locale The icu locale for the new calendar.

UNKNOWN: ICU 3.4 This API might change or be removed in a future release.

EthiopicCalendar

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 The value used to set the calendar's {@link #YEAR YEAR} time field. month The value used to set the calendar's {@link #MONTH MONTH} time field. The value is 0-based. e.g., 0 for Meskerem. date The value used to set the calendar's {@link #DATE DATE} time field.

UNKNOWN: ICU 3.4 This API might change or be removed in a future release.

EthiopicCalendar

public EthiopicCalendar(Date date)
Constructs a EthiopicCalendar with the given date set in the default time zone with the default locale.

Parameters: date The date to which the new calendar is set.

UNKNOWN: ICU 3.4 This API might change or be removed in a future release.

EthiopicCalendar

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 The value used to set the calendar's {@link #YEAR YEAR} time field. month The value used to set the calendar's {@link #MONTH MONTH} time field. The value is 0-based. e.g., 0 for Meskerem. date The value used to set the calendar's {@link #DATE DATE} time field. hour The value used to set the calendar's {@link #HOUR_OF_DAY HOUR_OF_DAY} time field. minute The value used to set the calendar's {@link #MINUTE MINUTE} time field. second The value used to set the calendar's {@link #SECOND SECOND} time field.

UNKNOWN: ICU 3.4 This API might change or be removed in a future release.

Method Detail

EthiopicToJD

public static int EthiopicToJD(long year, int month, int date)
Convert an Ethiopic year, month, and day to a Julian day.

Parameters: year the year month the month date the day

UNKNOWN: ICU 3.4 This API might change or be removed in a future release.

getDateFromJD

public static Integer[] getDateFromJD(int julianDay)

Deprecated: This API is ICU internal only.

UNKNOWN: ICU 3.4

getType

public String getType()

Deprecated: This API is ICU internal only.

Return the current Calendar type.

Returns: type of calendar (gregorian, etc.)

UNKNOWN: ICU 3.4

isAmeteAlemEra

public boolean isAmeteAlemEra()
Return true if this calendar is set to the Amete Alem era.

Returns: true if set to the Amete Alem era.

UNKNOWN: ICU 3.4 This API might change or be removed in a future release.

setAmeteAlemEra

public void setAmeteAlemEra(boolean onOff)
Set Alem or Mihret era.

Parameters: onOff Set Amete Alem era if true, otherwise set Amete Mihret era.

UNKNOWN: ICU 3.4 This API might change or be removed in a future release.

Copyright (c) 2007 IBM Corporation and others.