public final class CopticCalendar extends Calendar
CopticCalendar usually should be instantiated using
Calendar.getInstance(ULocale)
passing in a ULocale
with the tag "@calendar=coptic"
.
Calendar
,
Serialized FormCalendar.FormatConfiguration, Calendar.WeekData
Modifier and Type | Field and Description |
---|---|
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.
|
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.
|
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, IS_LEAP_MONTH, 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, ORDINAL_MONTH, PM, RESOLVE_REMAP, SATURDAY, SECOND, SEPTEMBER, SUNDAY, THURSDAY, TUESDAY, UNDECIMBER, UNSET, WALLTIME_FIRST, WALLTIME_LAST, WALLTIME_NEXT_VALID, WEDNESDAY, WEEK_OF_MONTH, WEEK_OF_YEAR, WEEKDAY, WEEKEND, WEEKEND_CEASE, WEEKEND_ONSET, YEAR, YEAR_WOY, ZONE_OFFSET
Constructor and Description |
---|
CopticCalendar()
Constructs a default
CopticCalendar using the current time
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)
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(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,
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. |
Modifier and Type | Method and Description |
---|---|
static int |
ceToJD(long year,
int month,
int day,
int jdEpochOffset)
Convert an Coptic/Ethiopic year, month and day to a Julian day
|
static int |
copticToJD(long year,
int month,
int date)
Convert an Coptic year, month, and day to a Julian day.
|
protected int |
getJDEpochOffset()
Deprecated.
This API is ICU internal only.
|
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.
|
protected void |
handleComputeFields(int julianDay)
Deprecated.
This API is ICU internal only.
|
protected int |
handleComputeMonthStart(int eyear,
int emonth,
boolean useMonth)
Return JD of start of given month/extended year
|
protected int |
handleGetExtendedYear()
Deprecated.
This API is ICU internal only.
|
protected int |
handleGetLimit(int field,
int limitType)
Calculate the limit for a specified type of limit and field
|
protected int |
handleGetMonthLength(int extendedYear,
int month)
Return the number of days in the given month of the given extended
year of this calendar system.
|
protected boolean |
isEra0CountingBackward()
Deprecated.
This API is ICU internal only.
|
static void |
jdToCE(int julianDay,
int jdEpochOffset,
int[] fields)
Convert a Julian day to an Coptic/Ethiopic year, month and day
|
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.
|
add, after, before, clear, clear, clone, compareTo, complete, computeFields, computeGregorianFields, computeGregorianMonthStart, computeJulianDay, computeMillisInDay, computeMillisInDayLong, computeTime, computeZoneOffset, computeZoneOffset, equals, fieldDifference, fieldName, floorDivide, floorDivide, floorDivide, floorDivide, get, getActualMaximum, getActualMinimum, getAvailableLocales, getAvailableULocales, getDateAtTimePattern, getDateTimeFormat, getDateTimeFormat, getDateTimePattern, getDayOfWeekType, getDefaultDayInMonth, getDefaultMonthInYear, getDisplayName, getDisplayName, getFieldCount, getFieldResolutionTable, getFirstDayOfWeek, getGreatestMinimum, getGregorianDayOfMonth, getGregorianDayOfYear, getGregorianMonth, getGregorianYear, getInstance, getInstance, getInstance, getInstance, getInstance, getInstance, getKeywordValuesForLocale, getLeastMaximum, getLimit, getLocale, getMaximum, getMinimalDaysInFirstWeek, getMinimum, getRelatedYear, getRepeatedWallTimeOption, getSkippedWallTimeOption, getStamp, getTime, getTimeInMillis, getTimeZone, getWeekData, getWeekDataForRegion, getWeekendTransition, gregorianMonthLength, gregorianPreviousMonthLength, handleComputeJulianDay, handleCreateFields, handleGetDateFormat, handleGetDateFormat, handleGetDateFormat, handleGetDateFormat, handleGetYearLength, hashCode, haveDefaultCentury, inTemporalLeapYear, internalGet, internalGet, internalGetMonth, internalGetMonth, internalGetTimeInMillis, internalSet, isEquivalentTo, isGregorianLeapYear, isLenient, isSet, isWeekend, isWeekend, julianDayToDayOfWeek, julianDayToMillis, millisToJulianDay, newerField, newestStamp, pinField, prepareGetActual, resolveFields, roll, roll, set, set, set, set, setFirstDayOfWeek, setLenient, setMinimalDaysInFirstWeek, setRelatedYear, setRepeatedWallTimeOption, setSkippedWallTimeOption, setTime, setTimeInMillis, setTimeZone, setWeekData, toString, validateField, validateField, validateFields, weekNumber, weekNumber
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
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(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, 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.public CopticCalendar(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.public String getType()
See type="old type name" for the calendar attribute of locale IDs at http://www.unicode.org/reports/tr35/#Key_Type_Definitions
@Deprecated protected boolean isEra0CountingBackward()
isEra0CountingBackward
in class Calendar
@Deprecated protected int handleGetExtendedYear()
handleGetExtendedYear
in class Calendar
@Deprecated protected void handleComputeFields(int julianDay)
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
@Deprecated protected int getJDEpochOffset()
public static int copticToJD(long year, int month, int date)
year
- the yearmonth
- the monthdate
- the dayprotected int handleComputeMonthStart(int eyear, int emonth, boolean useMonth)
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 monthprotected int handleGetLimit(int field, int limitType)
handleGetLimit
in class Calendar
field
- one of the above field numberslimitType
- one of MINIMUM
, GREATEST_MINIMUM
,
LEAST_MAXIMUM
, or MAXIMUM
protected int handleGetMonthLength(int extendedYear, int month)
handleGetMonthLength
in class Calendar
public static int ceToJD(long year, int month, int day, int jdEpochOffset)
year
- the extended yearmonth
- the monthday
- the daypublic static void jdToCE(int julianDay, int jdEpochOffset, int[] fields)
public String getTemporalMonthCode()
getTemporalMonthCode
in class Calendar
public void setTemporalMonthCode(String temporalMonth)
setTemporalMonthCode
in class Calendar
temporalMonth
- One of 13 possible strings in {"M01".. "M12", "M13"}.Copyright © 2016 Unicode, Inc. and others.