Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.joda.time.Chronology
org.joda.time.chrono.BaseChronology
org.joda.time.chrono.AssembledChronology
org.joda.time.chrono.BasicChronology
org.joda.time.chrono.IslamicChronology
public final class IslamicChronology
extends org.joda.time.chrono.BasicChronology
Years 2, 5, 7, 10, 13, 15, 18, 21, 24, 26 & 29 - 15-based, used by Microsoft Years 2, 5, 7, 10, 13, 16, 18, 21, 24, 26 & 29 - 16-based, most commonly used Years 2, 5, 8, 10, 13, 16, 19, 21, 24, 27 & 29 - Indian Years 2, 5, 8, 11, 13, 16, 19, 21, 24, 27 & 30 - Habash al-HasibYou can select which pattern to use via the factory methods, or use the default (16-based). This implementation defines a day as midnight to midnight exactly as per the ISO chronology. This correct start of day is at sunset on the previous day, however this cannot readily be modelled and has been ignored. IslamicChronology is thread-safe and immutable.
Wikipedia
Nested Class Summary | |
static class |
|
Nested classes/interfaces inherited from class org.joda.time.chrono.AssembledChronology | |
AssembledChronology.Fields |
Field Summary | |
static int |
|
static IslamicChronology.LeapYearPatternType |
|
static IslamicChronology.LeapYearPatternType |
|
static IslamicChronology.LeapYearPatternType |
|
static IslamicChronology.LeapYearPatternType |
|
Method Summary | |
protected void |
|
static IslamicChronology |
|
static IslamicChronology |
|
static IslamicChronology |
|
static IslamicChronology |
|
IslamicChronology.LeapYearPatternType |
|
int |
|
Chronology |
|
Chronology |
|
Methods inherited from class org.joda.time.chrono.BasicChronology | |
assemble , equals , getDateTimeMillis , getDateTimeMillis , getMinimumDaysInFirstWeek , getZone , hashCode , toString |
Methods inherited from class org.joda.time.chrono.AssembledChronology | |
assemble , centuries , centuryOfEra , clockhourOfDay , clockhourOfHalfday , dayOfMonth , dayOfWeek , dayOfYear , days , era , eras , getBase , getDateTimeMillis , getDateTimeMillis , getDateTimeMillis , getParam , getZone , halfdayOfDay , halfdays , hourOfDay , hourOfHalfday , hours , millis , millisOfDay , millisOfSecond , minuteOfDay , minuteOfHour , minutes , monthOfYear , months , secondOfDay , secondOfMinute , seconds , weekOfWeekyear , weeks , weekyear , weekyearOfCentury , weekyears , year , yearOfCentury , yearOfEra , years |
Methods inherited from class org.joda.time.chrono.BaseChronology | |
add , add , centuries , centuryOfEra , clockhourOfDay , clockhourOfHalfday , dayOfMonth , dayOfWeek , dayOfYear , days , era , eras , get , get , get , getDateTimeMillis , getDateTimeMillis , getDateTimeMillis , getZone , halfdayOfDay , halfdays , hourOfDay , hourOfHalfday , hours , millis , millisOfDay , millisOfSecond , minuteOfDay , minuteOfHour , minutes , monthOfYear , months , secondOfDay , secondOfMinute , seconds , set , toString , validate , weekOfWeekyear , weeks , weekyear , weekyearOfCentury , weekyears , withUTC , withZone , year , yearOfCentury , yearOfEra , years |
Methods inherited from class org.joda.time.Chronology | |
add , add , centuries , centuryOfEra , clockhourOfDay , clockhourOfHalfday , dayOfMonth , dayOfWeek , dayOfYear , days , era , eras , get , get , get , getBuddhist , getBuddhist , getBuddhistUTC , getCoptic , getCoptic , getCopticUTC , getDateTimeMillis , getDateTimeMillis , getDateTimeMillis , getGJ , getGJ , getGJUTC , getGregorian , getGregorian , getGregorianUTC , getISO , getISO , getISOUTC , getJulian , getJulian , getJulianUTC , getZone , halfdayOfDay , halfdays , hourOfDay , hourOfHalfday , hours , millis , millisOfDay , millisOfSecond , minuteOfDay , minuteOfHour , minutes , monthOfYear , months , secondOfDay , secondOfMinute , seconds , set , toString , validate , weekOfWeekyear , weeks , weekyear , weekyearOfCentury , weekyears , withUTC , withZone , year , yearOfCentury , yearOfEra , years |
public static final int AH
Constant value for 'Anno Hegirae', equivalent to the value returned for AD/CE.
- Field Value:
- 1
public static final IslamicChronology.LeapYearPatternType LEAP_YEAR_15_BASED
Leap year 15-based pattern.
public static final IslamicChronology.LeapYearPatternType LEAP_YEAR_16_BASED
Leap year 16-based pattern.
public static final IslamicChronology.LeapYearPatternType LEAP_YEAR_HABASH_AL_HASIB
Leap year Habash al-Hasib pattern.
public static final IslamicChronology.LeapYearPatternType LEAP_YEAR_INDIAN
Leap year Indian pattern.
protected void assemble(AssembledChronology.Fields fields)
- Overrides:
- assemble in interface org.joda.time.chrono.BasicChronology
public static IslamicChronology getInstance()
Gets an instance of the IslamicChronology in the default time zone.
- Returns:
- a chronology in the default time zone
public static IslamicChronology getInstance(DateTimeZone zone)
Gets an instance of the IslamicChronology in the given time zone.
- Parameters:
zone
- the time zone to get the chronology in, null is default
- Returns:
- a chronology in the specified time zone
public static IslamicChronology getInstance(DateTimeZone zone, IslamicChronology.LeapYearPatternType leapYears)
Gets an instance of the IslamicChronology in the given time zone.
- Parameters:
zone
- the time zone to get the chronology in, null is defaultleapYears
- the type defining the leap year pattern
- Returns:
- a chronology in the specified time zone
public static IslamicChronology getInstanceUTC()
Gets an instance of the IslamicChronology. The time zone of the returned instance is UTC.
- Returns:
- a singleton UTC instance of the chronology
public IslamicChronology.LeapYearPatternType getLeapYearPatternType()
Gets the leap year pattern type.
- Returns:
- the pattern type
public int hashCode()
A suitable hash code for the chronology.
- Overrides:
- hashCode in interface org.joda.time.chrono.BasicChronology
- Returns:
- the hash code
- Since:
- 1.6
public Chronology withUTC()
Gets the Chronology in the UTC time zone.
- Overrides:
- withUTC in interface BaseChronology
- Returns:
- the chronology in UTC
public Chronology withZone(DateTimeZone zone)
Gets the Chronology in a specific time zone.
- Overrides:
- withZone in interface BaseChronology
- Parameters:
zone
- the zone to get the chronology in, null is default
- Returns:
- the chronology