Deprecated
This API is ICU internal only.
DangiCalendar is a concrete subclass of Calendar
that implements a traditional Korean calendar.
| Modifier and Type | Field and Description |
|---|---|
| private static final int | DANGI_EPOCH_YEAR
The start year of the Korean traditional calendar (Dan-gi) is the inaugural year of Dan-gun (BC 2333). |
| private static final TimeZone | KOREA_ZONE
The time zone used for performing astronomical computations for Dangi calendar. |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | DangiCalendar()
Deprecated
This API is ICU internal only.
Construct a DangiCalendar with the default time zone and locale.
|
| public | DangiCalendar(Date
The date to which the new calendar is set. date)
Deprecated
This API is ICU internal only.
Construct a DangiCalendar with the give date set in the default time zone
with the default locale.
|
| public | DangiCalendar(TimeZone
the given time zone zone, ULocale the given locale locale)
Deprecated
This API is ICU internal only.
Construct a DangiCalendar based on the current time
with the given time zone with the given locale.
|
| Modifier and Type | Method and Description |
|---|---|
| public String | getType()
Overrides com.
Deprecated
This API is ICU internal only.
ICU |
| DANGI_EPOCH_YEAR | back to summary |
|---|---|
| private static final int DANGI_EPOCH_YEAR The start year of the Korean traditional calendar (Dan-gi) is the inaugural year of Dan-gun (BC 2333). | |
| KOREA_ZONE | back to summary |
|---|---|
| private static final TimeZone KOREA_ZONE The time zone used for performing astronomical computations for Dangi calendar. In Korea various timezones have been used historically (cf. http://www.math.snu.ac.kr/~kye/others/lunar.html): - 1908/04/01: GMT+8 1908/04/01 - 1911/12/31: GMT+8.5 1912/01/01 - 1954/03/20: GMT+9 1954/03/21 - 1961/08/09: GMT+8.5 1961/08/10 - : GMT+9 Note that, in 1908-1911, the government did not apply the timezone change but used GMT+8. In addition, 1954-1961's timezone change does not affect the lunar date calculation. Therefore, the following simpler rule works: -1911: GMT+8 1912-: GMT+9 Unfortunately, our astronomer's approximation doesn't agree with the references (http://www.math.snu.ac.kr/~kye/others/lunar.html and http://astro.kasi.re.kr/Life/ConvertSolarLunarForm.aspx?MenuID=115) in 1897/7/30. So the following ad hoc fix is used here: -1896: GMT+8 1897: GMT+7 1898-1911: GMT+8 1912- : GMT+9 | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| DangiCalendar | back to summary |
|---|---|
| public DangiCalendar()
Deprecated This API is ICU internal only. Construct a
| |
| DangiCalendar | back to summary |
|---|---|
| public DangiCalendar(Date date)
Deprecated This API is ICU internal only. Construct a | |
| DangiCalendar | back to summary |
|---|---|
| public DangiCalendar(TimeZone zone, ULocale locale)
Deprecated This API is ICU internal only. Construct a
| |
| getType | back to summary |
|---|---|
| public String getType() Overrides com. Doc from com. Deprecated This API is ICU internal only. ICU See type="old type name" for the calendar attribute of locale IDs at http://www.unicode.org/reports/tr35/#Key_Type_Definitions
| |