public final class CopticChronology extends Chronology implements Serializable
CopticChronology defines the rules of the Coptic calendar system. The Coptic calendar has twelve months of 30 days followed by an additional period of 5 or 6 days, modelled as the thirteenth month in this implementation.
Years are measured in the 'Era of the Martyrs'. 0001-01-01 (Coptic) equals 0284-08-29 (ISO). The supported range is from Coptic year 1 to year 9999 (inclusive).
CopticChronology is immutable and thread-safe.
Modifier and Type | Field and Description |
---|---|
static CopticChronology |
INSTANCE
The singleton instance of
CopticChronology . |
Modifier and Type | Method and Description |
---|---|
static DateTimeFieldRule<Integer> |
dayOfMonthRule()
Gets the rule for the day-of-month field in the Coptic chronology.
|
static DateTimeFieldRule<DayOfWeek> |
dayOfWeekRule()
Gets the rule for the day-of-week field in the Coptic chronology.
|
static DateTimeFieldRule<Integer> |
dayOfYearRule()
Gets the rule for the day-of-year field in the Coptic chronology.
|
String |
getName()
Gets the name of the chronology.
|
static boolean |
isLeapYear(int year)
Checks if the specified year is a leap year.
|
static DateTimeFieldRule<Integer> |
monthOfYearRule()
Gets the rule for the month-of-year field in the Coptic chronology.
|
static PeriodUnit |
periodDays()
Gets the period unit for days.
|
static PeriodUnit |
periodMonths()
Gets the period unit for months.
|
static PeriodUnit |
periodWeeks()
Gets the period unit for weeks.
|
static PeriodUnit |
periodYears()
Gets the period unit for years.
|
static DateTimeFieldRule<Integer> |
yearRule()
Gets the rule for the year field in the Coptic chronology.
|
get, rule, toString
public static final CopticChronology INSTANCE
CopticChronology
.public static boolean isLeapYear(int year)
A year is leap if the remainder after division by four equals three. This method does not validate the year passed in, and only has a well-defined result for years in the supported range.
year
- the year to check, not validated for rangepublic String getName()
getName
in class Chronology
public static DateTimeFieldRule<Integer> yearRule()
public static DateTimeFieldRule<Integer> monthOfYearRule()
public static DateTimeFieldRule<Integer> dayOfMonthRule()
public static DateTimeFieldRule<Integer> dayOfYearRule()
public static DateTimeFieldRule<DayOfWeek> dayOfWeekRule()
public static PeriodUnit periodYears()
The period unit defines the concept of a period of a year. This has an estimated duration equal to 365.25 days.
See yearRule()
for the main date-time field.
public static PeriodUnit periodMonths()
The period unit defines the concept of a period of a month. Coptic months are typically 30 days long, except for the 13th month which is 5 or 6 days long. The rule uses an estimated duration of 29.5 days.
See monthOfYearRule()
for the main date-time field.
public static PeriodUnit periodWeeks()
The period unit defines the concept of a period of a week. This is equivalent to the ISO weeks period unit.
public static PeriodUnit periodDays()
The period unit defines the concept of a period of a day. This is equivalent to the ISO days period unit.
See dayOfMonthRule()
for the main date-time field.
Copyright © 2014. All rights reserved.