Added in API level 24

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".

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.

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

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

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

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

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

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

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

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

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

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

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.

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

Int
handleGetLimit(field: Int, limitType: Int)

Calculate the limit for a specified type of limit and field

Inherited functions
Inherited properties

Constants

AMSHIR

Added in API level 24
static val AMSHIR: Int

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

Value: 5

BABA

Added in API level 24
static val BABA: Int

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

Value: 1

BARAMHAT

Added in API level 24
static val BARAMHAT: Int

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

Value: 6

BARAMOUDA

Added in API level 24
static val BARAMOUDA: Int

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

Value: 7

BASHANS

Added in API level 24
static val BASHANS: Int

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

Value: 8

EPEP

Added in API level 24
static val EPEP: Int

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

Value: 10

HATOR

Added in API level 24
static val HATOR: Int

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

Value: 2

KIAHK

Added in API level 24
static val KIAHK: Int

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

Value: 3

MESRA

Added in API level 24
static val MESRA: Int

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

Value: 11

NASIE

Added in API level 24
static val NASIE: Int

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

Value: 12

PAONA

Added in API level 24
static val PAONA: Int

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

Value: 9

TOBA

Added in API level 24
static val TOBA: Int

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

Value: 4

TOUT

Added in API level 24
static val TOUT: Int

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

Value: 0

Public constructors

CopticCalendar

Added in API level 24
CopticCalendar()

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

CopticCalendar

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

CopticCalendar

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

CopticCalendar

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

CopticCalendar

Added in API level 24
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 Locale!: The locale for the new calendar.

CopticCalendar

Added in API level 24
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 ULocale!: The icu locale for the new calendar.

CopticCalendar

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

CopticCalendar

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

CopticCalendar

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

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

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

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

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