Added in API level 26

EthiopicCalendar

class EthiopicCalendar : Calendar
kotlin.Any
   ↳ android.icu.util.Calendar
   ↳ android.icu.util.EthiopicCalendar

Implement the Ethiopic calendar system.

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

Summary

Constants
static Int

Constant for ግንቦት, the 9th month of the Ethiopic year.

static Int

Constant for ሐምሌ, the 11th month of the Ethiopic year.

static Int

Constant for ኅዳር, the 3rd month of the Ethiopic year.

static Int

Constant for መጋቢት, the 7th month of the Ethiopic year.

static Int

Constant for መስከረም, the 1st month of the Ethiopic year.

static Int

Constant for ሚያዝያ, the 8th month of the Ethiopic year.

static Int

Constant for ነሐሴ, the 12th month of the Ethiopic year.

static Int

Constant for ጳጉሜን, the 13th month of the Ethiopic year.

static Int

Constant for ሰኔ, the 10th month of the Ethiopic year.

static Int

Constant for ታኅሣሥ, the 4th month of the Ethiopic year.

static Int

Constant for ጥቅምት, the 2nd month of the Ethiopic year.

static Int

Constant for ጥር, the 5th month of the Ethiopic year.

static Int

Constant for የካቲት, the 6th month of the Ethiopic year.

Inherited constants
Public constructors

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

Constructs a EthiopicCalendar based on the current time in the given time zone with the default locale.

Constructs a EthiopicCalendar based on the current time in the default time zone with the given locale.

Constructs a EthiopicCalendar based on the current time in the default time zone with the given locale.

EthiopicCalendar(zone: TimeZone!, aLocale: Locale!)

Constructs a EthiopicCalendar based on the current time in the given time zone with the given locale.

EthiopicCalendar(zone: TimeZone!, locale: ULocale!)

Constructs a EthiopicCalendar based on the current time in the given time zone with the given locale.

EthiopicCalendar(year: Int, month: Int, date: Int)

Constructs a EthiopicCalendar with the given date set in the default time zone with the default locale.

Constructs a EthiopicCalendar with the given date set in the default time zone with the default locale.

EthiopicCalendar(year: Int, month: Int, date: Int, hour: Int, minute: Int, second: Int)

Constructs a EthiopicCalendar with the given date and time set for the default time zone with the default locale.

Public methods
String!

[icu] Returns the calendar type name string for this Calendar object.

Boolean

Return true if this calendar is set to the Amete Alem era.

Unit

Set Alem or Mihret era.

Protected methods
Int
handleComputeMonthStart(eyear: Int, emonth: Int, useMonth: Boolean)

Return JD of start of given month/extended year

Inherited functions
Inherited properties

Constants

GENBOT

Added in API level 26
static val GENBOT: Int

Constant for ግንቦት, the 9th month of the Ethiopic year.

Value: 8

HAMLE

Added in API level 26
static val HAMLE: Int

Constant for ሐምሌ, the 11th month of the Ethiopic year.

Value: 10

HEDAR

Added in API level 26
static val HEDAR: Int

Constant for ኅዳር, the 3rd month of the Ethiopic year.

Value: 2

MEGABIT

Added in API level 26
static val MEGABIT: Int

Constant for መጋቢት, the 7th month of the Ethiopic year.

Value: 6

MESKEREM

Added in API level 26
static val MESKEREM: Int

Constant for መስከረም, the 1st month of the Ethiopic year.

Value: 0

MIAZIA

Added in API level 26
static val MIAZIA: Int

Constant for ሚያዝያ, the 8th month of the Ethiopic year.

Value: 7

NEHASSE

Added in API level 26
static val NEHASSE: Int

Constant for ነሐሴ, the 12th month of the Ethiopic year.

Value: 11

PAGUMEN

Added in API level 26
static val PAGUMEN: Int

Constant for ጳጉሜን, the 13th month of the Ethiopic year.

Value: 12

SENE

Added in API level 26
static val SENE: Int

Constant for ሰኔ, the 10th month of the Ethiopic year.

Value: 9

TAHSAS

Added in API level 26
static val TAHSAS: Int

Constant for ታኅሣሥ, the 4th month of the Ethiopic year.

Value: 3

TEKEMT

Added in API level 26
static val TEKEMT: Int

Constant for ጥቅምት, the 2nd month of the Ethiopic year.

Value: 1

TER

Added in API level 26
static val TER: Int

Constant for ጥር, the 5th month of the Ethiopic year.

Value: 4

YEKATIT

Added in API level 26
static val YEKATIT: Int

Constant for የካቲት, the 6th month of the Ethiopic year.

Value: 5

Public constructors

EthiopicCalendar

Added in API level 26
EthiopicCalendar()

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

EthiopicCalendar

Added in API level 26
EthiopicCalendar(zone: TimeZone!)

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.

EthiopicCalendar

Added in API level 26
EthiopicCalendar(aLocale: Locale!)

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.

EthiopicCalendar

Added in API level 26
EthiopicCalendar(locale: ULocale!)

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.

EthiopicCalendar

Added in API level 26
EthiopicCalendar(
    zone: TimeZone!,
    aLocale: 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.
aLocale Locale!: The locale for the new calendar.

EthiopicCalendar

Added in API level 26
EthiopicCalendar(
    zone: TimeZone!,
    locale: ULocale!)

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.

EthiopicCalendar

Added in API level 26
EthiopicCalendar(
    year: Int,
    month: Int,
    date: Int)

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.

EthiopicCalendar

Added in API level 26
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.

EthiopicCalendar

Added in API level 26
EthiopicCalendar(
    year: Int,
    month: Int,
    date: Int,
    hour: Int,
    minute: Int,
    second: Int)

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 methods

getType

Added in API level 26
fun getType(): String!

[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

Return
String! legacy calendar type name string

isAmeteAlemEra

Added in API level 26
fun isAmeteAlemEra(): Boolean

Return true if this calendar is set to the Amete Alem era.

Return
Boolean true if set to the Amete Alem era.

setAmeteAlemEra

Added in API level 26
fun setAmeteAlemEra(onOff: Boolean): Unit

Set Alem or Mihret era.

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

Protected methods

handleComputeMonthStart

Added in API level 26
protected fun handleComputeMonthStart(
    eyear: Int,
    emonth: Int,
    useMonth: Boolean
): Int

Return JD of start of given month/extended year

Parameters
eyear Int: the extended year
month 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
Return
Int the Julian day number of the day before the first day of the given month and year