com.ibm.icu.util

Class CopticCalendar

Implemented Interfaces:
Cloneable, Comparable, Serializable

public final class CopticCalendar
extends com.ibm.icu.util.CECalendar

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:
Calendar

Field Summary

static int
AMSHIR
Constant for \u039c\u03b5\u03e3\u03b9\u03c1/\ufeae\ufef4\ufeb8\ufee3\u0623, the 6th month of the Coptic year.
static int
BABA
Constant for \u03a0\u03b1\u03bf\u03c0\u03b9/\ufeea\ufe91\ufe8e\ufe91, the 2nd month of the Coptic year.
static 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.
static int
BARAMOUDA
Constant for \u03a6\u03b1\u03c1\u03bc\u03bf\u03b8\u03b9/\u0647\u062f\ufeee\ufee3\ufeae\ufe91, the 8th month of the Coptic year.
static int
BASHANS
Constant for \u03a0\u03b1\u03e3\u03b1\u03bd/\ufeb2\ufee8\ufeb8\ufe91, the 9th month of the Coptic year.
static int
EPEP
Constant for \u0395\u03c0\u03b7\u03c0/\ufe90\ufef4\ufe91\u0623, the 11th month of the Coptic year.
static int
HATOR
Constant for \u0391\u03b8\u03bf\u03c1/\u0631\ufeee\ufe97\ufe8e\ufeeb, the 3rd month of the Coptic year.
static int
KIAHK
Constant for \u03a7\u03bf\u03b9\u03b1\u03ba/\ufeda\ufeec\ufef4\ufedb, the 4th month of the Coptic year.
static int
MESRA
Constant for \u039c\u03b5\u03f2\u03c9\u03c1\u03b7/\u0649\ufeae\ufeb4\ufee3, the 12th month of the Coptic year.
static 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.
static int
PAONA
Constant for \u03a0\u03b1\u03c9\u03bd\u03b9/\ufeea\ufee7\u0624\ufeee\ufe91, the 10th month of the Coptic year.
static int
TOBA
Constant for \u03a4\u03c9\u03b2\u03b9/\u0637\ufeee\ufe92\ufeeb, the 5th month of the Coptic year.
static int
TOUT
Constant for \u03c9\u03bf\u03b3\u03c4/\u062a\ufeee\ufe97, the 1st month of the Coptic year.

Fields inherited from class com.ibm.icu.util.CECalendar

jdEpochOffset

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, JANUARY, JAN_1_1_JULIAN_DAY, JULIAN_DAY, JULY, JUNE, LEAST_MAXIMUM, MARCH, MAXIMUM, MAX_DATE, MAX_FIELD_COUNT, MAX_JULIAN, MAX_MILLIS, MAY, MILLISECOND, MILLISECONDS_IN_DAY, MINIMUM, MINIMUM_USER_STAMP, MINUTE, MIN_DATE, MIN_JULIAN, MIN_MILLIS, 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, WEEKDAY, WEEKEND, WEEKEND_CEASE, WEEKEND_ONSET, WEEK_OF_MONTH, WEEK_OF_YEAR, 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(Date date)
Constructs a CopticCalendar with the given date set in 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.
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.

Method Summary

static int
copticToJD(long year, int month, int date)
Convert an Coptic year, month, and day to a Julian day.
static Integer[]
getDateFromJD(int julianDay)
String
getType()
Return the current Calendar type.

Methods inherited from class com.ibm.icu.util.CECalendar

ceToJD, getDateFromJD, handleComputeFields, handleComputeMonthStart, handleGetExtendedYear, handleGetLimit

Methods inherited from class com.ibm.icu.util.Calendar

add, after, before, clear, clear, clone, compareTo, compareTo, complete, computeFields, computeGregorianFields, computeGregorianMonthStart, computeJulianDay, computeMillisInDay, computeTime, computeZoneOffset, equals, fieldDifference, fieldName, floorDivide, floorDivide, floorDivide, floorDivide, get, getActualMaximum, getActualMinimum, getAvailableLocales, getAvailableULocales, getDateTimeFormat, getDateTimeFormat, getDayOfWeekType, getDisplayName, getDisplayName, getFieldCount, getFieldResolutionTable, getFirstDayOfWeek, getGreatestMinimum, getGregorianDayOfMonth, getGregorianDayOfYear, getGregorianMonth, getGregorianYear, getInstance, getInstance, getInstance, getInstance, getInstance, getInstance, getLeastMaximum, getLimit, getLocale, getMaximum, getMinimalDaysInFirstWeek, getMinimum, getStamp, getTime, getTimeInMillis, getTimeZone, getType, getWeekendTransition, gregorianMonthLength, gregorianPreviousMonthLength, handleComputeFields, handleComputeJulianDay, handleComputeMonthStart, handleCreateFields, handleGetDateFormat, handleGetDateFormat, handleGetExtendedYear, handleGetLimit, handleGetMonthLength, handleGetYearLength, hashCode, internalGet, internalGet, 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, setTime, setTimeInMillis, setTimeZone, toString, validateField, validateField, validateFields, weekNumber, weekNumber

Field Details

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.
Field Value:
5

BABA

public static final int BABA
Constant for \u03a0\u03b1\u03bf\u03c0\u03b9/\ufeea\ufe91\ufe8e\ufe91, the 2nd month of the Coptic year.
Field Value:
1

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.
Field Value:
6

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.
Field Value:
7

BASHANS

public static final int BASHANS
Constant for \u03a0\u03b1\u03e3\u03b1\u03bd/\ufeb2\ufee8\ufeb8\ufe91, the 9th month of the Coptic year.
Field Value:
8

EPEP

public static final int EPEP
Constant for \u0395\u03c0\u03b7\u03c0/\ufe90\ufef4\ufe91\u0623, the 11th month of the Coptic year.
Field Value:
10

HATOR

public static final int HATOR
Constant for \u0391\u03b8\u03bf\u03c1/\u0631\ufeee\ufe97\ufe8e\ufeeb, the 3rd month of the Coptic year.
Field Value:
2

KIAHK

public static final int KIAHK
Constant for \u03a7\u03bf\u03b9\u03b1\u03ba/\ufeda\ufeec\ufef4\ufedb, the 4th month of the Coptic year.
Field Value:
3

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.
Field Value:
11

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.
Field Value:
12

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.
Field Value:
9

TOBA

public static final int TOBA
Constant for \u03a4\u03c9\u03b2\u03b9/\u0637\ufeee\ufe92\ufeeb, the 5th month of the Coptic year.
Field Value:
4

TOUT

public static final int TOUT
Constant for \u03c9\u03bf\u03b3\u03c4/\u062a\ufeee\ufe97, the 1st month of the Coptic year.
Field Value:
0

Constructor Details

CopticCalendar

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

CopticCalendar

public CopticCalendar(Date date)
Constructs a CopticCalendar with the given date set in the default time zone with the default locale.
Parameters:
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 - The locale for the new calendar.

CopticCalendar

public CopticCalendar(TimeZone zone)
Constructs a CopticCalendar based on the current time in the given time zone with the default locale.
Parameters:
zone - The time zone 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 - The time zone for the new calendar.
aLocale - The locale 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 - The time zone for the new calendar.
locale - The icu 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 - 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.
Parameters:
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.

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 - 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 Details

copticToJD

public static int copticToJD(long year,
                             int month,
                             int date)
Convert an Coptic year, month, and day to a Julian day.
Parameters:
year - the year
month - the month
date - the day

getDateFromJD

public static Integer[] getDateFromJD(int julianDay)

getType

public String getType()
Return the current Calendar type.
Overrides:
getType in interface Calendar
Returns:
type of calendar (gregorian, etc.)

Copyright (c) 2006 IBM Corporation and others.