|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.icu.util.Calendar
com.ibm.icu.util.CopticCalendar
public final class CopticCalendar
Implement the Coptic calendar system.
CopticCalendar usually should be instantiated using
Calendar.getInstance(ULocale)
passing in a ULocale
with the tag "@calendar=coptic"
.
Calendar
,
Serialized FormNested Class Summary |
---|
Nested classes/interfaces inherited from class com.ibm.icu.util.Calendar |
---|
Calendar.FormatConfiguration |
Field Summary | |
---|---|
static int |
AMSHIR
Constant for ?????/?????, the 6th month of the Coptic year. |
static int |
BABA
Constant for ?????/????, the 2nd month of the Coptic year. |
static int |
BARAMHAT
Constant for ????????/??????, the 7th month of the Coptic year. |
static int |
BARAMOUDA
Constant for ???????/??????, the 8th month of the Coptic year. |
static int |
BASHANS
Constant for ?????/????, the 9th month of the Coptic year. |
static int |
EPEP
Constant for ????/????, the 11th month of the Coptic year. |
static int |
HATOR
Constant for ????/?????, the 3rd month of the Coptic year. |
protected int |
jdEpochOffset
|
static int |
KIAHK
Constant for ?????/????, the 4th month of the Coptic year. |
static int |
MESRA
Constant for ??????/????, the 12th month of the Coptic year. |
static int |
NASIE
Constant for ??????? ?????/?????? ?????, the 13th month of the Coptic year. |
static int |
PAONA
Constant for ?????/?????, the 10th month of the Coptic year. |
static int |
TOBA
Constant for ????/????, the 5th month of the Coptic year. |
static int |
TOUT
Constant for ????/???, the 1st month of the Coptic year. |
Fields inherited from class com.ibm.icu.util.Calendar |
---|
AM, AM_PM, APRIL, AUGUST, BASE_FIELD_COUNT, DATE, DAY_OF_MONTH, DAY_OF_WEEK, DAY_OF_WEEK_IN_MONTH, DAY_OF_YEAR, DECEMBER, DOW_LOCAL, DST_OFFSET, EPOCH_JULIAN_DAY, ERA, EXTENDED_YEAR, FEBRUARY, FRIDAY, GREATEST_MINIMUM, HOUR, HOUR_OF_DAY, INTERNALLY_SET, JAN_1_1_JULIAN_DAY, JANUARY, JULIAN_DAY, JULY, JUNE, LEAST_MAXIMUM, MARCH, MAX_DATE, MAX_FIELD_COUNT, MAX_JULIAN, MAX_MILLIS, MAXIMUM, MAY, MILLISECOND, MILLISECONDS_IN_DAY, MIN_DATE, MIN_JULIAN, MIN_MILLIS, MINIMUM, MINIMUM_USER_STAMP, MINUTE, MONDAY, MONTH, NOVEMBER, OCTOBER, ONE_DAY, ONE_HOUR, ONE_MINUTE, ONE_SECOND, ONE_WEEK, PM, RESOLVE_REMAP, SATURDAY, SECOND, SEPTEMBER, SUNDAY, THURSDAY, TUESDAY, UNDECIMBER, UNSET, WEDNESDAY, WEEK_OF_MONTH, WEEK_OF_YEAR, WEEKDAY, WEEKEND, WEEKEND_CEASE, WEEKEND_ONSET, YEAR, YEAR_WOY, ZONE_OFFSET |
Constructor Summary | |
---|---|
CopticCalendar()
Constructs a default CopticCalendar using the current time
in the default time zone with the default locale. |
|
CopticCalendar(java.util.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)
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. |
|
CopticCalendar(java.util.Locale aLocale)
Constructs a CopticCalendar based on the current time
in the default time zone with the given locale. |
|
CopticCalendar(TimeZone zone)
Constructs a CopticCalendar based on the current time
in the given time zone with the default locale. |
|
CopticCalendar(TimeZone zone,
java.util.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(ULocale locale)
Constructs a CopticCalendar based on the current time
in the default time zone with the given locale. |
Method Summary | |
---|---|
static int |
ceToJD(long year,
int month,
int date,
int jdEpochOffset)
|
static int |
copticToJD(long year,
int month,
int date)
Convert an Coptic year, month, and day to a Julian day. |
static java.lang.Integer[] |
getDateFromJD(int julianDay)
Deprecated. This API is ICU internal only. |
static java.lang.Integer[] |
getDateFromJD(int julianDay,
int jdEpochOffset)
|
java.lang.String |
getType()
Deprecated. This API is ICU internal only. |
protected void |
handleComputeFields(int julianDay)
Subclasses may override this method to compute several fields specific to each calendar system. |
protected int |
handleComputeMonthStart(int eyear,
int emonth,
boolean useMonth)
Return the Julian day number of day before the first day of the given month in the given extended year. |
protected int |
handleGetExtendedYear()
Return the extended year defined by the current fields. |
protected int |
handleGetLimit(int field,
int limitType)
Subclass API for defining limits of different types. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int TOUT
public static final int BABA
public static final int HATOR
public static final int KIAHK
public static final int TOBA
public static final int AMSHIR
public static final int BARAMHAT
public static final int BARAMOUDA
public static final int BASHANS
public static final int PAONA
public static final int EPEP
public static final int MESRA
public static final int NASIE
protected int jdEpochOffset
Constructor Detail |
---|
public CopticCalendar()
CopticCalendar
using the current time
in the default time zone with the default locale.
public CopticCalendar(TimeZone zone)
CopticCalendar
based on the current time
in the given time zone with the default locale.
zone
- The time zone for the new calendar.public CopticCalendar(java.util.Locale aLocale)
CopticCalendar
based on the current time
in the default time zone with the given locale.
aLocale
- The locale for the new calendar.public CopticCalendar(ULocale locale)
CopticCalendar
based on the current time
in the default time zone with the given locale.
locale
- The icu locale for the new calendar.public CopticCalendar(TimeZone zone, java.util.Locale aLocale)
CopticCalendar
based on the current time
in the given time zone with the given locale.
zone
- The time zone for the new calendar.aLocale
- The locale for the new calendar.public CopticCalendar(TimeZone zone, ULocale locale)
CopticCalendar
based on the current time
in the given time zone with the given locale.
zone
- The time zone for the new calendar.locale
- The icu locale for the new calendar.public CopticCalendar(int year, int month, int date)
CopticCalendar
with the given date set
in the default time zone with the default locale.
year
- The value used to set the calendar's YEAR
time field.month
- The value used to set the calendar's MONTH
time field.
The value is 0-based. e.g., 0 for Tout.date
- The value used to set the calendar's DATE
time field.public CopticCalendar(java.util.Date date)
CopticCalendar
with the given date set
in the default time zone with the default locale.
date
- The date to which the new calendar is set.public CopticCalendar(int year, int month, int date, int hour, int minute, int second)
CopticCalendar
with the given date
and time set for the default time zone with the default locale.
year
- The value used to set the calendar's YEAR
time field.month
- The value used to set the calendar's MONTH
time field.
The value is 0-based. e.g., 0 for Tout.date
- The value used to set the calendar's DATE
time field.hour
- The value used to set the calendar's HOUR_OF_DAY
time field.minute
- The value used to set the calendar's MINUTE
time field.second
- The value used to set the calendar's SECOND
time field.Method Detail |
---|
public static int copticToJD(long year, int month, int date)
year
- the yearmonth
- the monthdate
- the daypublic static java.lang.Integer[] getDateFromJD(int julianDay)
public java.lang.String getType()
getType
in class Calendar
protected int handleGetLimit(int field, int limitType)
Calendar
ERA YEAR MONTH WEEK_OF_YEAR WEEK_OF_MONTH DAY_OF_MONTH DAY_OF_YEAR DAY_OF_WEEK_IN_MONTH YEAR_WOY EXTENDED_YEAR
handleGetLimit
in class Calendar
field
- one of the above field numberslimitType
- one of MINIMUM
, GREATEST_MINIMUM
,
LEAST_MAXIMUM
, or MAXIMUM
protected int handleComputeMonthStart(int eyear, int emonth, boolean useMonth)
Calendar
handleComputeMonthStart
in class Calendar
eyear
- the extended yearemonth
- the zero-based month, or 0 if useMonth is falseuseMonth
- 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
protected int handleGetExtendedYear()
Calendar
handleGetExtendedYear
in class Calendar
protected void handleComputeFields(int julianDay)
Calendar
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.
handleComputeFields
in class Calendar
public static int ceToJD(long year, int month, int date, int jdEpochOffset)
public static java.lang.Integer[] getDateFromJD(int julianDay, int jdEpochOffset)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |