Top Description Fields Constructors Methods
com.ibm.icu.util

public Class DangiCalendar

extends ChineseCalendar
Class Inheritance
Annotations
@Deprecated
Imports
java.util.Date, com.ibm.icu.util.ULocale.Category

Deprecated

This API is ICU internal only.

DangiCalendar is a concrete subclass of Calendar that implements a traditional Korean calendar.
ICU Status
Internal ICU component.

Field Summary

Modifier and TypeField 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
Inherited from com.ibm.icu.util.ChineseCalendar:
CHINESE_DATE_PRECEDENCE

Constructor Summary

AccessConstructor 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.

Method Summary

Modifier and TypeMethod and Description
public String
getType()

Overrides com.ibm.icu.util.ChineseCalendar.getType.

Deprecated This API is ICU internal only.

ICU

Inherited from com.ibm.icu.util.ChineseCalendar:
addgetFieldResolutionTablegetTemporalMonthCodehandleComputeFieldshandleComputeMonthStarthandleGetDateFormathandleGetExtendedYearhandleGetLimithandleGetMonthLengthhaveDefaultCenturyinTemporalLeapYearinternalGetMonthinternalGetMonthrollsetTemporalMonthCode

Field Detail

DANGI_EPOCH_YEARback 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_ZONEback 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

serialVersionUIDback to summary
private static final long serialVersionUID

Hides com.ibm.icu.util.ChineseCalendar.serialVersionUID.

Constructor Detail

DangiCalendarback to summary
public DangiCalendar()

Deprecated

This API is ICU internal only.

Construct a DangiCalendar with the default time zone and locale.

Annotations
@Deprecated
ICU Status
Internal ICU component.
DangiCalendarback to summary
public DangiCalendar(Date 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.

Parameters
date:Date

The date to which the new calendar is set.

Annotations
@Deprecated
ICU Status
Internal ICU component.
DangiCalendarback to summary
public DangiCalendar(TimeZone zone, ULocale 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.

Parameters
zone:TimeZone

the given time zone

locale:ULocale

the given locale

Annotations
@Deprecated
ICU Status
Internal ICU component.

Method Detail

getTypeback to summary
public String getType()

Overrides com.ibm.icu.util.ChineseCalendar.getType.

Doc from com.ibm.icu.util.ChineseCalendar.getType.

Deprecated

This API is ICU internal only.

ICU

Returns the calendar type name string for this Calendar object. The returned string is the legacy ICU calendar attribute value, for example, "gregorian" or "japanese".

See type="old type name" for the calendar attribute of locale IDs at http://www.unicode.org/reports/tr35/#Key_Type_Definitions

Returns:String

Doc from com.ibm.icu.util.Calendar.getType.

legacy calendar type name string

Annotations
@Deprecated
ICU Status
Internal ICU component.