|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.time.calendar.Chronology javax.time.i18n.HistoricChronology
public final class HistoricChronology
The Historic calendar system.
HistoricChronology defines the rules of the Historic calendar system. The Historic 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 (Historic) equals 0284-08-29 (ISO). The supported range is from Historic year 1 to year 9999 (inclusive).
HistoricChronology is immutable and thread-safe.
Method Summary | |
---|---|
static HistoricChronology |
cutoverAt(LocalDate cutover)
Obtains an instance of HistoricChronology specifying the
cutover date when the Gregorian/ISO calendar system was first used. |
DateTimeRule |
dayOfMonthRule()
Gets the rule for the day-of-month field in the Historic chronology. |
DateTimeRule |
dayOfWeekRule()
Gets the rule for the day-of-week field in the Historic chronology. |
DateTimeRule |
dayOfYearRule()
Gets the rule for the day-of-year field in the Historic chronology. |
DateTimeRule |
eraRule()
Gets the rule for the year field in the Historic chronology. |
LocalDate |
getCutover()
Gets the cutover date of the chronology. |
java.lang.String |
getName()
Gets the name of the chronology. |
boolean |
isLeapYear(int year)
Checks if the specified year is a leap year. |
DateTimeRule |
monthOfYearRule()
Gets the rule for the month-of-year field in the Historic chronology. |
static PeriodUnit |
periodDays()
Gets the period unit for days. |
static PeriodUnit |
periodEras()
Gets the period unit for eras. |
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 HistoricChronology |
standardCutover()
Obtains an instance of HistoricChronology using the standard
cutover date of 1582-10-15. |
DateTimeRule |
yearOfEraRule()
Gets the rule for the year field in the Historic chronology. |
DateTimeRule |
yearRule()
Gets the rule for the year field in the Historic chronology. |
Methods inherited from class javax.time.calendar.Chronology |
---|
get, rule, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static HistoricChronology cutoverAt(LocalDate cutover)
HistoricChronology
specifying the
cutover date when the Gregorian/ISO calendar system was first used.
cutover
- the cutover date, not null
HistoricChronology
, not nullpublic static HistoricChronology standardCutover()
HistoricChronology
using the standard
cutover date of 1582-10-15.
HistoricChronology
, not nullpublic 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 range
public LocalDate getCutover()
public java.lang.String getName()
getName
in class Chronology
public DateTimeRule eraRule()
public DateTimeRule yearOfEraRule()
public DateTimeRule yearRule()
public DateTimeRule monthOfYearRule()
public DateTimeRule dayOfMonthRule()
public DateTimeRule dayOfYearRule()
public DateTimeRule dayOfWeekRule()
public static PeriodUnit periodEras()
The period unit defines the concept of a period of an era.
This is a basic unit and has no equivalent period. The estimated duration is equal to 2,000,000,000 years. This is equivalent to the ISO era period unit.
See eraRule()
for the main date-time field.
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. Historic 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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |