|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.joda.time.Chronology org.joda.time.chrono.BaseChronology org.joda.time.chrono.AssembledChronology org.joda.time.chrono.BuddhistChronology
A chronology that matches the BuddhistCalendar class supplied by Sun.
The chronology is identical to the Gregorian/Julian, except that the year is offset by +543 and the era is named 'BE' for Buddhist Era.
This class was intended by Sun to model the calendar used in Thailand. However, the actual rules for Thailand are much more involved than this class covers. (This class is accurate after 1941-01-01 ISO).
This chronlogy is being retained for those who want a same effect replacement for the Sun class. It is hoped that community support will enable a more accurate chronology for Thailand, to be developed.
BuddhistChronology is thread-safe and immutable.
Nested Class Summary |
Nested classes inherited from class org.joda.time.chrono.AssembledChronology |
AssembledChronology.Fields |
Field Summary | |
static int |
BE
Constant value for 'Buddhist Era', equivalent to the value returned for AD/CE. |
Method Summary | |
boolean |
equals(Object obj)
Checks if this chronology instance equals another. |
static BuddhistChronology |
getInstance()
Standard instance of a Buddhist Chronology, that matches Sun's BuddhistCalendar class. |
static BuddhistChronology |
getInstance(DateTimeZone zone)
Standard instance of a Buddhist Chronology, that matches Sun's BuddhistCalendar class. |
static BuddhistChronology |
getInstanceUTC()
Standard instance of a Buddhist Chronology, that matches Sun's BuddhistCalendar class. |
int |
hashCode()
A suitable hash code for the chronology. |
String |
toString()
Gets a debugging toString. |
Chronology |
withUTC()
Gets the Chronology in the UTC time zone. |
Chronology |
withZone(DateTimeZone zone)
Gets the Chronology in a specific time zone. |
Methods inherited from class org.joda.time.chrono.AssembledChronology |
centuries, centuryOfEra, clockhourOfDay, clockhourOfHalfday, dayOfMonth, dayOfWeek, dayOfYear, days, era, eras, getDateTimeMillis, getDateTimeMillis, getDateTimeMillis, 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, get, get, get, set, validate |
Methods inherited from class org.joda.time.Chronology |
getBuddhist, getBuddhist, getBuddhistUTC, getCoptic, getCoptic, getCopticUTC, getGJ, getGJ, getGJUTC, getGregorian, getGregorian, getGregorianUTC, getISO, getISO, getISOUTC, getJulian, getJulian, getJulianUTC |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int BE
Method Detail |
public static BuddhistChronology getInstanceUTC()
The time zone of the returned instance is UTC.
public static BuddhistChronology getInstance()
public static BuddhistChronology getInstance(DateTimeZone zone)
zone
- the time zone to use, null is defaultpublic Chronology withUTC()
withUTC
in class BaseChronology
public Chronology withZone(DateTimeZone zone)
withZone
in class BaseChronology
zone
- the zone to get the chronology in, null is default
ZonedChronology
public boolean equals(Object obj)
obj
- the object to compare to
public int hashCode()
public String toString()
toString
in class BaseChronology
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |