BuddhistCalendar
is a subclass of GregorianCalendar
that numbers years since the birth of the Buddha. This is the civil calendar in some predominantly Buddhist countries such as Thailand, and it is used for religious purposes elsewhere. The Buddhist calendar is identical to the Gregorian calendar in all respects except for the year and era. Years are numbered since the birth of the Buddha in 543 BC (Gregorian), so that 1 AD (Gregorian) is equivalent to 544 BE (Buddhist Era) and 1998 AD is 2541 BE.
The Buddhist Calendar has only one allowable era: BE
. If the calendar is not in lenient mode (see setLenient
), dates before 1/1/1 BE are rejected with an IllegalArgumentException
.
This class should not be subclassed.
BuddhistCalendar usually should be instantiated using {@link com.ibm.icu.util.Calendar#getInstance(ULocale)} passing in a ULocale
with the tag "@calendar=buddhist"
.
|
|
|
|
|
|
|
|