CopticCalendar

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

Implement the Coptic calendar system.

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


Requires API level 24 (Android 7.0, Nougat)

Summary

Constants
static Int

Constant for Μεϣιρ / ﺮﻴﺸﻣأ, the 6th month of the Coptic year.

static Int

Constant for Παοπι / ﻪﺑﺎﺑ, the 2nd month of the Coptic year.

static Int

Constant for Παρεμϩατ / تﺎﻬﻣﺮﺑ, the 7th month of the Coptic year.

static Int

Constant for Φαρμοθι / هدﻮﻣﺮﺑ, the 8th month of the Coptic year.

static Int

Constant for Παϣαν / ﺲﻨﺸﺑ;, the 9th month of the Coptic year.

static Int

Constant for Επηπ / ﺐﻴﺑأ, the 11th month of the Coptic year.

static Int

Constant for Αθορ / رﻮﺗﺎﻫ, the 3rd month of the Coptic year.

static Int

Constant for Χοιακ / ﻚﻬﻴﻛ;, the 4th month of the Coptic year.

static Int

Constant for Μεϲωρη / ىﺮﺴﻣ, the 12th month of the Coptic year.

static Int

Constant for Πικογϫι μαβοτ / ﺮﻴﻐﺼﻟاﺮﻬﺸﻟا, the 13th month of the Coptic year.

static Int

Constant for Παωνι / ﻪﻧؤﻮﺑ, the 10th month of the Coptic year.

static Int

Constant for Τωβι / طﻮﺒﻫ, the 5th month of the Coptic year.

static Int

Constant for ωογτ / تﻮﺗ, the 1st month of the Coptic year.

Inherited constants
Public constructors

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

<init>(zone: TimeZone!)

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

<init>(aLocale: Locale!)

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

<init>(locale: ULocale!)

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

<init>(zone: TimeZone!, aLocale: Locale!)

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

<init>(zone: TimeZone!, locale: ULocale!)

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

<init>(year: Int, month: Int, date: Int)

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

<init>(date: Date!)

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

<init>(year: Int, month: Int, date: Int, hour: Int, minute: Int, second: Int)

Constructs a CopticCalendar 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.

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

Return JD of start of given month/extended year
Requires API level 24 (Android 7.0, Nougat)

Int
handleGetLimit(field: Int, limitType: Int)

Calculate the limit for a specified type of limit and field
Requires API level 24 (Android 7.0, Nougat)

Inherited functions
Inherited properties

Constants

AMSHIR

added in API level 24
static val AMSHIR: Int

Constant for Μεϣιρ / ﺮﻴﺸﻣأ, the 6th month of the Coptic year.
Requires API level 24 (Android 7.0, Nougat)

Value: 5

BABA

added in API level 24
static val BABA: Int

Constant for Παοπι / ﻪﺑﺎﺑ, the 2nd month of the Coptic year.
Requires API level 24 (Android 7.0, Nougat)

Value: 1

BARAMHAT

added in API level 24
static val BARAMHAT: Int

Constant for Παρεμϩατ / تﺎﻬﻣﺮﺑ, the 7th month of the Coptic year.
Requires API level 24 (Android 7.0, Nougat)

Value: 6

BARAMOUDA

added in API level 24
static val BARAMOUDA: Int

Constant for Φαρμοθι / هدﻮﻣﺮﺑ, the 8th month of the Coptic year.
Requires API level 24 (Android 7.0, Nougat)

Value: 7

BASHANS

added in API level 24
static val BASHANS: Int

Constant for Παϣαν / ﺲﻨﺸﺑ;, the 9th month of the Coptic year.
Requires API level 24 (Android 7.0, Nougat)

Value: 8

EPEP

added in API level 24
static val EPEP: Int

Constant for Επηπ / ﺐﻴﺑأ, the 11th month of the Coptic year.
Requires API level 24 (Android 7.0, Nougat)

Value: 10

HATOR

added in API level 24
static val HATOR: Int

Constant for Αθορ / رﻮﺗﺎﻫ, the 3rd month of the Coptic year.
Requires API level 24 (Android 7.0, Nougat)

Value: 2

KIAHK

added in API level 24
static val KIAHK: Int

Constant for Χοιακ / ﻚﻬﻴﻛ;, the 4th month of the Coptic year.
Requires API level 24 (Android 7.0, Nougat)

Value: 3

MESRA

added in API level 24
static val MESRA: Int

Constant for Μεϲωρη / ىﺮﺴﻣ, the 12th month of the Coptic year.
Requires API level 24 (Android 7.0, Nougat)

Value: 11

NASIE

added in API level 24
static val NASIE: Int

Constant for Πικογϫι μαβοτ / ﺮﻴﻐﺼﻟاﺮﻬﺸﻟا, the 13th month of the Coptic year.
Requires API level 24 (Android 7.0, Nougat)

Value: 12

PAONA

added in API level 24
static val PAONA: Int

Constant for Παωνι / ﻪﻧؤﻮﺑ, the 10th month of the Coptic year.
Requires API level 24 (Android 7.0, Nougat)

Value: 9

TOBA

added in API level 24
static val TOBA: Int

Constant for Τωβι / طﻮﺒﻫ, the 5th month of the Coptic year.
Requires API level 24 (Android 7.0, Nougat)

Value: 4

TOUT

added in API level 24
static val TOUT: Int

Constant for ωογτ / تﻮﺗ, the 1st month of the Coptic year.
Requires API level 24 (Android 7.0, Nougat)

Value: 0

Public constructors

<init>

CopticCalendar()

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

<init>

CopticCalendar(zone: TimeZone!)

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

Parameters
zone TimeZone!: The time zone for the new calendar.

<init>

CopticCalendar(aLocale: Locale!)

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

Parameters
aLocale Locale!: The locale for the new calendar.

<init>

CopticCalendar(locale: ULocale!)

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

Parameters
locale ULocale!: The icu locale for the new calendar.

<init>

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

Constructs a CopticCalendar 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 TimeZone!: The locale for the new calendar.

<init>

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

Constructs a CopticCalendar 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 TimeZone!: The icu locale for the new calendar.

<init>

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

Constructs a CopticCalendar 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 Tout.
date Int: The value used to set the calendar's DATE time field.

<init>

CopticCalendar(date: Date!)

Constructs a CopticCalendar 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.

<init>

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

Constructs a CopticCalendar 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 Tout.
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 24
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
Requires API level 24 (Android 7.0, Nougat)
Requires API level 24 (Android 7.0, Nougat)

Return
String!: legacy calendar type name string

Protected methods

handleComputeMonthStart

added in API level 24
protected fun handleComputeMonthStart(eyear: Int, emonth: Int, useMonth: Boolean): Int

Return JD of start of given month/extended year
Requires API level 24 (Android 7.0, Nougat)

Parameters
eyear Int: the extended year
month Int: the zero-based month, or 0 if useMonth is false
useMonth Int: 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

handleGetLimit

added in API level 24
protected fun handleGetLimit(field: Int, limitType: Int): Int

Calculate the limit for a specified type of limit and field
Requires API level 24 (Android 7.0, Nougat)

Parameters
field Int: one of the above field numbers
limitType Int: one of MINIMUM, GREATEST_MINIMUM, LEAST_MAXIMUM, or MAXIMUM