public final class HijrahChronology extends Chronology implements java.io.Serializable
HijrahChronology
defines the rules of the Hijrah calendar system.
The Hijrah calendar follows the Freeman-Grenville
algorithm (*1) and has following features.
The table shows the features described above.
# of month Name of month Number of days 1 Muharram 30 2 Safar 29 3 Rabi'al-Awwal 30 4 Rabi'ath-Thani 29 5 Jumada l-Ula 30 6 Jumada t-Tania 29 7 Rajab 30 8 Sha`ban 29 9 Ramadan 30 10 Shawwal 29 11 Dhu 'l-Qa`da 30 12 Dhu 'l-Hijja 29, but 30 days in years 2, 5, 7, 10,
13, 16, 18, 21, 24, 26, and 29
(*1) The algorithm is taken from the book, The Muslim and Christian Calendars by G.S.P. Freeman-Grenville.
HijrahChronology is immutable and thread-safe.
Modifier and Type | Field and Description |
---|---|
static HijrahChronology |
INSTANCE
The singleton instance of
HijrahChronology . |
Modifier and Type | Method and Description |
---|---|
static DateTimeFieldRule<java.lang.Integer> |
dayOfMonthRule()
Gets the rule for the day-of-month field in the Hijrah chronology.
|
static DateTimeFieldRule<DayOfWeek> |
dayOfWeekRule()
Gets the rule for the day-of-week field in the Hijrah chronology.
|
static DateTimeFieldRule<java.lang.Integer> |
dayOfYearRule()
Gets the rule for the day-of-year field in the Hijrah chronology.
|
static DateTimeFieldRule<HijrahEra> |
eraRule()
Gets the rule for the era field in the Hijrah chronology.
|
java.lang.String |
getName()
Gets the name of the chronology.
|
static DateTimeFieldRule<java.lang.Integer> |
monthOfYearRule()
Gets the rule for the month-of-year field in the Hijrah 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 DateTimeFieldRule<java.lang.Integer> |
yearOfEraRule()
Gets the rule for the year of era field in the Hijrah chronology.
|
get, rule, toString
public static final HijrahChronology INSTANCE
HijrahChronology
.public java.lang.String getName()
getName
in class Chronology
public static DateTimeFieldRule<HijrahEra> eraRule()
public static DateTimeFieldRule<java.lang.Integer> yearOfEraRule()
public static DateTimeFieldRule<java.lang.Integer> monthOfYearRule()
public static DateTimeFieldRule<java.lang.Integer> dayOfMonthRule()
public static DateTimeFieldRule<java.lang.Integer> dayOfYearRule()
public static DateTimeFieldRule<DayOfWeek> dayOfWeekRule()
public static PeriodUnit periodEras()
The period unit defines the concept of a period of an era. This is equivalent to the ISO eras 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. The Hijrah year varies from 354 to 355 days. The estimated duration of the year is 354.36... days (30617280 seconds).
See yearOfEraRule()
for the main date-time field.
public static PeriodUnit periodMonths()
The period unit defines the concept of a period of a month. The Hijrah month varies from 29 to 30 days. The estimated duration of the month is 29.5305... days (2551440 seconds).
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.