# Print output for @column tags ?> CopticCalendar - Android SDK | Android Developers

Most visited

Recently visited

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

Inherited fields

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

Inherited methods

Constants

AMSHIR

public static final int AMSHIR

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

Constant Value: 5 (0x00000005)

BABA

public static final int BABA

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

Constant Value: 1 (0x00000001)

BARAMHAT

public static final int BARAMHAT

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

Constant Value: 6 (0x00000006)

BARAMOUDA

public static final int BARAMOUDA

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

Constant Value: 7 (0x00000007)

BASHANS

public static final int BASHANS

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

Constant Value: 8 (0x00000008)

EPEP

public static final int EPEP

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

Constant Value: 10 (0x0000000a)

HATOR

public static final int HATOR

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

Constant Value: 2 (0x00000002)

KIAHK

public static final int KIAHK

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

Constant Value: 3 (0x00000003)

MESRA

public static final int MESRA

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

Constant Value: 11 (0x0000000b)

NASIE

public static final int NASIE

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

Constant Value: 12 (0x0000000c)

PAONA

public static final int PAONA

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

Constant Value: 9 (0x00000009)

TOBA

public static final int TOBA

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

Constant Value: 4 (0x00000004)

TOUT

public static final int TOUT

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

Constant Value: 0 (0x00000000)

Public constructors

CopticCalendar

public CopticCalendar ()

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

CopticCalendar

public 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

public 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

public 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

public 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

public 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

public 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

public 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

public 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

public 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

protected 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

protected 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