Most visited

Recently visited

Added in API level 24

CopticCalendar

public final class CopticCalendar
extends Calendar

java.lang.Object
   ↳ android.icu.util.Calendar
     ↳ android.icu.util.CopticCalendar


Implement the Coptic calendar system.

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

See also:

Summary

Constants

int AMSHIR

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

int BABA

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

int BARAMHAT

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

int BARAMOUDA

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

int BASHANS

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

int EPEP

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

int HATOR

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

int KIAHK

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

int MESRA

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

int NASIE

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

int PAONA

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

int TOBA

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

int TOUT

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

Inherited constants

From class android.icu.util.Calendar

Inherited fields

From class android.icu.util.Calendar

Public constructors

CopticCalendar()

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

CopticCalendar(TimeZone zone)

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

CopticCalendar(Locale aLocale)

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

CopticCalendar(ULocale locale)

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

CopticCalendar(TimeZone zone, Locale aLocale)

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

CopticCalendar(TimeZone zone, ULocale locale)

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

CopticCalendar(int year, int month, int date)

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

CopticCalendar(Date date)

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

CopticCalendar(int year, int month, int date, int hour, int minute, int second)

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

Public methods

String getType()

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

Protected methods

int handleComputeMonthStart(int eyear, int emonth, boolean useMonth)

Return JD of start of given month/extended year

int handleGetLimit(int field, int limitType)

Calculate the limit for a specified type of limit and field

int handleGetMonthLength(int extendedYear, int month)

Return the number of days in the given month of the given extended year of this calendar system.

Inherited methods

From class android.icu.util.Calendar
From class java.lang.Object
From interface java.lang.Comparable

Constants

AMSHIR

Added in API level 24
int AMSHIR

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

Constant Value: 5 (0x00000005)

BABA

Added in API level 24
int BABA

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

Constant Value: 1 (0x00000001)

BARAMHAT

Added in API level 24
int BARAMHAT

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

Constant Value: 6 (0x00000006)

BARAMOUDA

Added in API level 24
int BARAMOUDA

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

Constant Value: 7 (0x00000007)

BASHANS

Added in API level 24
int BASHANS

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

Constant Value: 8 (0x00000008)

EPEP

Added in API level 24
int EPEP

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

Constant Value: 10 (0x0000000a)

HATOR

Added in API level 24
int HATOR

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

Constant Value: 2 (0x00000002)

KIAHK

Added in API level 24
int KIAHK

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

Constant Value: 3 (0x00000003)

MESRA

Added in API level 24
int MESRA

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

Constant Value: 11 (0x0000000b)

NASIE

Added in API level 24
int NASIE

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

Constant Value: 12 (0x0000000c)

PAONA

Added in API level 24
int PAONA

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

Constant Value: 9 (0x00000009)

TOBA

Added in API level 24
int TOBA

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

Constant Value: 4 (0x00000004)

TOUT

Added in API level 24
int TOUT

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

Constant Value: 0 (0x00000000)

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 (TimeZone zone)

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 (Locale aLocale)

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 (ULocale locale)

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 (TimeZone zone, 
                Locale aLocale)

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 (TimeZone zone, 
                ULocale 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.
locale ULocale: The icu locale for the new calendar.

CopticCalendar

Added in API level 24
CopticCalendar (int year, 
                int month, 
                int date)

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 (int year, 
                int month, 
                int date, 
                int hour, 
                int minute, 
                int second)

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

Protected methods

handleComputeMonthStart

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

handleGetLimit

Added in API level 24
int handleGetLimit (int field, 
                int limitType)

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
Returns
int

handleGetMonthLength

Added in API level 24
int handleGetMonthLength (int extendedYear, 
                int month)

Return the number of days in the given month of the given extended year of this calendar system. Subclasses should override this method if they can provide a more correct or more efficient implementation than the default implementation in Calendar.

Parameters
extendedYear int
month int
Returns
int

Hooray!