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 \u039c\u03b5\u03e3\u03b9\u03c1 / \ufeae\ufef4\ufeb8\ufee3\u0623, the 6th month of the Coptic year. |
int |
BABA
Constant for \u03a0\u03b1\u03bf\u03c0\u03b9 / \ufeea\ufe91\ufe8e\ufe91, the 2nd month of the Coptic year. |
int |
BARAMHAT
Constant for \u03a0\u03b1\u03c1\u03b5\u03bc\u03e9\u03b1\u03c4 / \u062a\ufe8e\ufeec\ufee3\ufeae\ufe91, the 7th month of the Coptic year. |
int |
BARAMOUDA
Constant for \u03a6\u03b1\u03c1\u03bc\u03bf\u03b8\u03b9 / \u0647\u062f\ufeee\ufee3\ufeae\ufe91, the 8th month of the Coptic year. |
int |
BASHANS
Constant for \u03a0\u03b1\u03e3\u03b1\u03bd / \ufeb2\ufee8\ufeb8\ufe91;, the 9th month of the Coptic year. |
int |
EPEP
Constant for \u0395\u03c0\u03b7\u03c0 / \ufe90\ufef4\ufe91\u0623, the 11th month of the Coptic year. |
int |
HATOR
Constant for \u0391\u03b8\u03bf\u03c1 / \u0631\ufeee\ufe97\ufe8e\ufeeb, the 3rd month of the Coptic year. |
int |
KIAHK
Constant for \u03a7\u03bf\u03b9\u03b1\u03ba / \ufeda\ufeec\ufef4\ufedb;, the 4th month of the Coptic year. |
int |
MESRA
Constant for \u039c\u03b5\u03f2\u03c9\u03c1\u03b7 / \u0649\ufeae\ufeb4\ufee3, the 12th month of the Coptic year. |
int |
NASIE
Constant for \u03a0\u03b9\u03ba\u03bf\u03b3\u03eb\u03b9 \u03bc\u03b1\u03b2\u03bf\u03c4 / \ufeae\ufef4\ufed0\ufebc\ufedf\u0627\ufeae\ufeec\ufeb8\ufedf\u0627, the 13th month of the Coptic year. |
int |
PAONA
Constant for \u03a0\u03b1\u03c9\u03bd\u03b9 / \ufeea\ufee7\u0624\ufeee\ufe91, the 10th month of the Coptic year. |
int |
TOBA
Constant for \u03a4\u03c9\u03b2\u03b9 / \u0637\ufeee\ufe92\ufeeb, the 5th month of the Coptic year. |
int |
TOUT
Constant for \u03c9\u03bf\u03b3\u03c4 / \u062a\ufeee\ufe97, the 1st month of the Coptic year. |
Inherited constants | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Inherited fields |
---|
|
Public constructors | |
---|---|
CopticCalendar()
Constructs a default |
|
CopticCalendar(TimeZone zone)
Constructs a |
|
CopticCalendar(TimeZone zone, ULocale locale)
Constructs a |
|
CopticCalendar(TimeZone zone, Locale aLocale)
Constructs a |
|
CopticCalendar(ULocale locale)
Constructs a |
|
CopticCalendar(int year, int month, int date)
Constructs a |
|
CopticCalendar(int year, int month, int date, int hour, int minute, int second)
Constructs a |
|
CopticCalendar(Date date)
Constructs a |
|
CopticCalendar(Locale aLocale)
Constructs a |
Public methods | |
---|---|
String
|
getTemporalMonthCode()
Gets The Temporal monthCode value corresponding to the month for the date. |
String
|
getType()
[icu] Returns the calendar type name string for this Calendar object. |
void
|
setTemporalMonthCode(String temporalMonth)
Sets The Temporal monthCode which is a string identifier that starts with the literal grapheme "M" followed by two graphemes representing the zero-padded month number of the current month in a normal (non-leap) year. |
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 \u039c\u03b5\u03e3\u03b9\u03c1 / \ufeae\ufef4\ufeb8\ufee3\u0623, the 6th month of the Coptic year.
Constant Value: 5 (0x00000005)
BABA
public static final int BABA
Constant for \u03a0\u03b1\u03bf\u03c0\u03b9 / \ufeea\ufe91\ufe8e\ufe91, the 2nd month of the Coptic year.
Constant Value: 1 (0x00000001)
BARAMHAT
public static final int BARAMHAT
Constant for \u03a0\u03b1\u03c1\u03b5\u03bc\u03e9\u03b1\u03c4 / \u062a\ufe8e\ufeec\ufee3\ufeae\ufe91, the 7th month of the Coptic year.
Constant Value: 6 (0x00000006)
BARAMOUDA
public static final int BARAMOUDA
Constant for \u03a6\u03b1\u03c1\u03bc\u03bf\u03b8\u03b9 / \u0647\u062f\ufeee\ufee3\ufeae\ufe91, the 8th month of the Coptic year.
Constant Value: 7 (0x00000007)
BASHANS
public static final int BASHANS
Constant for \u03a0\u03b1\u03e3\u03b1\u03bd / \ufeb2\ufee8\ufeb8\ufe91;, the 9th month of the Coptic year.
Constant Value: 8 (0x00000008)
EPEP
public static final int EPEP
Constant for \u0395\u03c0\u03b7\u03c0 / \ufe90\ufef4\ufe91\u0623, the 11th month of the Coptic year.
Constant Value: 10 (0x0000000a)
HATOR
public static final int HATOR
Constant for \u0391\u03b8\u03bf\u03c1 / \u0631\ufeee\ufe97\ufe8e\ufeeb, the 3rd month of the Coptic year.
Constant Value: 2 (0x00000002)
KIAHK
public static final int KIAHK
Constant for \u03a7\u03bf\u03b9\u03b1\u03ba / \ufeda\ufeec\ufef4\ufedb;, the 4th month of the Coptic year.
Constant Value: 3 (0x00000003)
MESRA
public static final int MESRA
Constant for \u039c\u03b5\u03f2\u03c9\u03c1\u03b7 / \u0649\ufeae\ufeb4\ufee3, the 12th month of the Coptic year.
Constant Value: 11 (0x0000000b)
NASIE
public static final int NASIE
Constant for \u03a0\u03b9\u03ba\u03bf\u03b3\u03eb\u03b9 \u03bc\u03b1\u03b2\u03bf\u03c4 / \ufeae\ufef4\ufed0\ufebc\ufedf\u0627\ufeae\ufeec\ufeb8\ufedf\u0627, the 13th month of the Coptic year.
Constant Value: 12 (0x0000000c)
PAONA
public static final int PAONA
Constant for \u03a0\u03b1\u03c9\u03bd\u03b9 / \ufeea\ufee7\u0624\ufeee\ufe91, the 10th month of the Coptic year.
Constant Value: 9 (0x00000009)
TOBA
public static final int TOBA
Constant for \u03a4\u03c9\u03b2\u03b9 / \u0637\ufeee\ufe92\ufeeb, the 5th month of the Coptic year.
Constant Value: 4 (0x00000004)
TOUT
public static final int TOUT
Constant for \u03c9\u03bf\u03b3\u03c4 / \u062a\ufeee\ufe97, 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 (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 (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 (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 (int year, int month, int date)
Constructs a CopticCalendar
with the given date set
in the default time zone with the default locale.
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. |
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 (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 methods
getTemporalMonthCode
public String getTemporalMonthCode ()
Gets The Temporal monthCode value corresponding to the month for the date. The value is a string identifier that starts with the literal grapheme "M" followed by two graphemes representing the zero-padded month number of the current month in a normal (non-leap) year. For the short thirteen month in each year in the CECalendar, the value is "M13".
Returns | |
---|---|
String |
One of 13 possible strings in {"M01".. "M12", "M13"}. |
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 |
setTemporalMonthCode
public void setTemporalMonthCode (String temporalMonth)
Sets The Temporal monthCode which is a string identifier that starts with the literal grapheme "M" followed by two graphemes representing the zero-padded month number of the current month in a normal (non-leap) year. For CECalendar calendar, the values are "M01" .. "M13" while the "M13" is represent the short thirteen month in each year.
Parameters | |
---|---|
temporalMonth |
String : One of 13 possible strings in {"M01".. "M12", "M13"}. |
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 |