Top Description Fields Constructors Methods
com.ibm.icu.util

public final Class CopticCalendar

extends CECalendar
Class Inheritance
Imports
java.util.Date, .Locale

Implement the Coptic calendar system.

CopticCalendar usually should be instantiated using com.ibm.icu.util.Calendar#getInstance(ULocale) passing in a ULocale with the tag "@calendar=coptic".

ICU Status
Stable since ICU 3.4.
See Also
com.ibm.icu.util.Calendar

Field Summary

Modifier and TypeField and Description
public static final int
AMSHIR

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

public static final int
BABA

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

public static final int
BARAMHAT

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

public static final int
BARAMOUDA

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

public static final int
BASHANS

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

private static final int
private static final int
public static final int
EPEP

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

public static final int
HATOR

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

private static final int
public static final int
KIAHK

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

public static final int
MESRA

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

public static final int
NASIE

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

public static final int
PAONA

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

private static final long
public static final int
TOBA

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

public static final int
TOUT

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

Constructor Summary

AccessConstructor and Description
public
CopticCalendar()

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

public
CopticCalendar(TimeZone
The time zone for the new calendar.
zone
)

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

public
CopticCalendar(Locale
The locale for the new calendar.
aLocale
)

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

public
CopticCalendar(ULocale
The icu locale for the new calendar.
locale
)

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

public
CopticCalendar(TimeZone
The time zone for the new calendar.
zone
,
Locale
The locale for the new calendar.
aLocale
)

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

public
CopticCalendar(TimeZone
The time zone for the new calendar.
zone
,
ULocale
The icu locale for the new calendar.
locale
)

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

public
CopticCalendar(int
The value used to set the calendar's YEAR time field.
year
,
int
The value used to set the calendar's MONTH time field. The value is 0-based. e.g., 0 for Tout.
month
,
int
The value used to set the calendar's DATE time field.
date
)

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

public
CopticCalendar(Date
The date to which the new calendar is set.
date
)

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

public
CopticCalendar(int
The value used to set the calendar's YEAR time field.
year
,
int
The value used to set the calendar's MONTH time field. The value is 0-based. e.g., 0 for Tout.
month
,
int
The value used to set the calendar's DATE time field.
date
,
int
The value used to set the calendar's HOUR_OF_DAY time field.
hour
,
int
The value used to set the calendar's MINUTE time field.
minute
,
int
The value used to set the calendar's SECOND time field.
second
)

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

Method Summary

Modifier and TypeMethod and Description
public static int
copticToJD(long
the year
year
,
int
the month
month
,
int
the day
date
)

Convert an Coptic year, month, and day to a Julian day.

protected int
getJDEpochOffset()

Implements abstract com.ibm.icu.util.CECalendar.getJDEpochOffset.

Deprecated This API is ICU internal only.
The Coptic and Ethiopic calendars differ only in their epochs.
public String
protected void
handleComputeFields(int julianDay)

Overrides com.ibm.icu.util.Calendar.handleComputeFields.

Deprecated This API is ICU internal only.
Subclasses may override this method to compute several fields specific to each calendar system.
protected int
handleGetExtendedYear()

Implements abstract com.ibm.icu.util.Calendar.handleGetExtendedYear.

Deprecated This API is ICU internal only.
Returns the extended year defined by the current fields.
Inherited from com.ibm.icu.util.CECalendar:
ceToJDgetTemporalMonthCodehandleComputeMonthStarthandleGetLimithandleGetMonthLengthjdToCEsetTemporalMonthCode

Field Detail

AMSHIRback to summary
public static final int AMSHIR

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

ICU Status
Stable since ICU 3.4.
BABAback to summary
public static final int BABA

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

ICU Status
Stable since ICU 3.4.
BARAMHATback to summary
public static final int BARAMHAT

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

ICU Status
Stable since ICU 3.4.
BARAMOUDAback to summary
public static final int BARAMOUDA

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

ICU Status
Stable since ICU 3.4.
BASHANSback to summary
public static final int BASHANS

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

ICU Status
Stable since ICU 3.4.
BCEback to summary
private static final int BCE
CEback to summary
private static final int CE
EPEPback to summary
public static final int EPEP

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

ICU Status
Stable since ICU 3.4.
HATORback to summary
public static final int HATOR

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

ICU Status
Stable since ICU 3.4.
JD_EPOCH_OFFSETback to summary
private static final int JD_EPOCH_OFFSET
KIAHKback to summary
public static final int KIAHK

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

ICU Status
Stable since ICU 3.4.
MESRAback to summary
public static final int MESRA

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

ICU Status
Stable since ICU 3.4.
NASIEback to summary
public static final int NASIE

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

ICU Status
Stable since ICU 3.4.
PAONAback to summary
public static final int PAONA

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

ICU Status
Stable since ICU 3.4.
serialVersionUIDback to summary
private static final long serialVersionUID

Hides com.ibm.icu.util.CECalendar.serialVersionUID.

TOBAback to summary
public static final int TOBA

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

ICU Status
Stable since ICU 3.4.
TOUTback to summary
public static final int TOUT

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

ICU Status
Stable since ICU 3.4.

Constructor Detail

CopticCalendarback to summary
public CopticCalendar()

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

ICU Status
Stable since ICU 3.4.
CopticCalendarback to summary
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.

ICU Status
Stable since ICU 3.4.
CopticCalendarback to summary
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.

ICU Status
Stable since ICU 3.4.
CopticCalendarback to summary
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.

ICU Status
Stable since ICU 3.4.
CopticCalendarback to summary
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.

ICU Status
Stable since ICU 3.4.
CopticCalendarback to summary
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.

ICU Status
Stable since ICU 3.4.
CopticCalendarback to summary
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.

ICU Status
Stable since ICU 3.4.
CopticCalendarback to summary
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.

ICU Status
Stable since ICU 3.4.
CopticCalendarback to summary
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.

ICU Status
Stable since ICU 3.4.

Method Detail

copticToJDback to summary
public static int copticToJD(long year, int month, int date)

Convert an Coptic year, month, and day to a Julian day.

Parameters
year:long

the year

month:int

the month

date:int

the day

ICU Status
Draft since ICU 3.4 (retain).
getJDEpochOffsetback to summary
protected int getJDEpochOffset()

Implements abstract com.ibm.icu.util.CECalendar.getJDEpochOffset.

Doc from com.ibm.icu.util.CECalendar.getJDEpochOffset.

Deprecated

This API is ICU internal only.

The Coptic and Ethiopic calendars differ only in their epochs. This method must be implemented by CECalendar subclasses to return the date offset from Julian.

Annotations
@Override
@Deprecated
ICU Status
Internal ICU component.
getTypeback to summary
public String getType()

Overrides com.ibm.icu.util.Calendar.getType.

Doc from com.ibm.icu.util.Calendar.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

Annotations
@Override
ICU Status
Stable since ICU 3.8.
handleComputeFieldsback to summary
protected void handleComputeFields(int julianDay)

Overrides com.ibm.icu.util.Calendar.handleComputeFields.

Doc from com.ibm.icu.util.Calendar.handleComputeFields.

Deprecated

This API is ICU internal only.

Subclasses may override this method to compute several fields specific to each calendar system. These are:

  • ERA
  • YEAR
  • MONTH
  • DAY_OF_MONTH
  • DAY_OF_YEAR
  • EXTENDED_YEAR
Subclasses can refer to the DAY_OF_WEEK and DOW_LOCAL fields, which will be set when this method is called. Subclasses can also call the getGregorianXxx() methods to obtain Gregorian calendar equivalents for the given Julian day.

In addition, subclasses should compute any subclass-specific fields, that is, fields from BASE_FIELD_COUNT to getFieldCount() - 1.

The default implementation in Calendar implements a pure proleptic Gregorian calendar.

Annotations
@Override
@Deprecated
ICU Status
Internal ICU component.
handleGetExtendedYearback to summary
protected int handleGetExtendedYear()

Implements abstract com.ibm.icu.util.Calendar.handleGetExtendedYear.

Doc from com.ibm.icu.util.Calendar.handleGetExtendedYear.

Deprecated

This API is ICU internal only.

Returns the extended year defined by the current fields. This will use the EXTENDED_YEAR field or the YEAR and supra-year fields (such as ERA) specific to the calendar system, depending on which set of fields is newer.

Returns:int

the extended year

Annotations
@Override
@Deprecated
ICU Status
Internal ICU component.