Class DangiCalendar

All Implemented Interfaces:
Serializable, Cloneable, Comparable<Calendar>

@Deprecated public class DangiCalendar extends ChineseCalendar
Deprecated.
This API is ICU internal only.
DangiCalendar is a concrete subclass of Calendar that implements a traditional Korean calendar.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Deprecated.
      See Also:
    • DANGI_EPOCH_YEAR

      private static final int DANGI_EPOCH_YEAR
      Deprecated.
      The start year of the Korean traditional calendar (Dan-gi) is the inaugural year of Dan-gun (BC 2333).
      See Also:
    • KOREA_ZONE

      private static final TimeZone KOREA_ZONE
      Deprecated.
      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
  • Constructor Details

    • DangiCalendar

      @Deprecated public DangiCalendar()
      Deprecated.
      This API is ICU internal only.
      Construct a DangiCalendar with the default time zone and locale.
    • DangiCalendar

      @Deprecated 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 - The date to which the new calendar is set.
    • DangiCalendar

      @Deprecated 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 - the given time zone
      locale - the given locale
  • Method Details

    • getType

      @Deprecated public String getType()
      Deprecated.
      This API is ICU internal only.
      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

      Overrides:
      getType in class ChineseCalendar
      Returns:
      legacy calendar type name string