# Print output for @column tags ?>
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:
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(TimeZone zone)
Constructs a |
|
CopticCalendar(Locale aLocale)
Constructs a |
|
CopticCalendar(ULocale locale)
Constructs a |
|
CopticCalendar(TimeZone zone, Locale aLocale)
Constructs a |
|
CopticCalendar(TimeZone zone, ULocale locale)
Constructs a |
|
CopticCalendar(int year, int month, int date)
Constructs a |
|
CopticCalendar(Date date)
Constructs a |
|
CopticCalendar(int year, int month, int date, int hour, int minute, int second)
Constructs a |
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 | |
---|---|
public static final int AMSHIR
Constant for Μεϣιρ / ﺮﻴﺸﻣأ, the 6th month of the Coptic year.
Constant Value: 5 (0x00000005)
public static final int BABA
Constant for Παοπι / ﻪﺑﺎﺑ, the 2nd month of the Coptic year.
Constant Value: 1 (0x00000001)
public static final int BARAMHAT
Constant for Παρεμϩατ / تﺎﻬﻣﺮﺑ, the 7th month of the Coptic year.
Constant Value: 6 (0x00000006)
public static final int BARAMOUDA
Constant for Φαρμοθι / هدﻮﻣﺮﺑ, the 8th month of the Coptic year.
Constant Value: 7 (0x00000007)
public static final int BASHANS
Constant for Παϣαν / ﺲﻨﺸﺑ;, the 9th month of the Coptic year.
Constant Value: 8 (0x00000008)
public static final int EPEP
Constant for Επηπ / ﺐﻴﺑأ, the 11th month of the Coptic year.
Constant Value: 10 (0x0000000a)
public static final int HATOR
Constant for Αθορ / رﻮﺗﺎﻫ, the 3rd month of the Coptic year.
Constant Value: 2 (0x00000002)
public static final int KIAHK
Constant for Χοιακ / ﻚﻬﻴﻛ;, the 4th month of the Coptic year.
Constant Value: 3 (0x00000003)
public static final int MESRA
Constant for Μεϲωρη / ىﺮﺴﻣ, the 12th month of the Coptic year.
Constant Value: 11 (0x0000000b)
public static final int NASIE
Constant for Πικογϫι μαβοτ / ﺮﻴﻐﺼﻟاﺮﻬﺸﻟا, the 13th month of the Coptic year.
Constant Value: 12 (0x0000000c)
public static final int PAONA
Constant for Παωνι / ﻪﻧؤﻮﺑ, the 10th month of the Coptic year.
Constant Value: 9 (0x00000009)
public static final int TOBA
Constant for Τωβι / طﻮﺒﻫ, the 5th month of the Coptic year.
Constant Value: 4 (0x00000004)
public static final int TOUT
Constant for ωογτ / تﻮﺗ, the 1st month of the Coptic year.
Constant Value: 0 (0x00000000)
public CopticCalendar ()
Constructs a default CopticCalendar
using the current time
in the default time zone with the default locale.
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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 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 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 |
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 |