Class DangiCalendar
java.lang.Object
com.ibm.icu.util.Calendar
com.ibm.icu.util.ChineseCalendar
com.ibm.icu.util.DangiCalendar
- All Implemented Interfaces:
Serializable, Cloneable, Comparable<Calendar>
Deprecated.
This API is ICU internal only.
DangiCalendar is a concrete subclass of Calendar
that implements a traditional Korean calendar.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class ChineseCalendar
ChineseCalendar.MonthInfoNested classes/interfaces inherited from class Calendar
Calendar.FormatConfiguration, Calendar.PatternData, Calendar.WeekData -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final TimeZoneDeprecated.The time zone used for performing astronomical computations for Dangi calendar.private static final longDeprecated.Fields inherited from class ChineseCalendar
CHINESE_DATE_PRECEDENCEFields inherited from class Calendar
AM, AM_PM, APRIL, AUGUST, BASE_FIELD_COUNT, DATE, DATE_PRECEDENCE, DAY_OF_MONTH, DAY_OF_WEEK, DAY_OF_WEEK_IN_MONTH, DAY_OF_YEAR, DECEMBER, DOW_LOCAL, DOW_PRECEDENCE, DST_OFFSET, EPOCH_JULIAN_DAY, ERA, EXTENDED_YEAR, FEBRUARY, FRIDAY, GREATEST_MINIMUM, HOUR, HOUR_OF_DAY, INTERNALLY_SET, IS_LEAP_MONTH, JAN_1_1_JULIAN_DAY, JANUARY, JULIAN_DAY, JULY, JUNE, LEAST_MAXIMUM, MARCH, MAX_DATE, MAX_FIELD_COUNT, MAX_JULIAN, MAX_MILLIS, MAXIMUM, MAY, MILLISECOND, MILLISECONDS_IN_DAY, MIN_DATE, MIN_JULIAN, MIN_MILLIS, MINIMUM, MINIMUM_USER_STAMP, MINUTE, MONDAY, MONTH, MONTH_PRECEDENCE, NOVEMBER, OCTOBER, ONE_DAY, ONE_HOUR, ONE_MINUTE, ONE_SECOND, ONE_WEEK, ORDINAL_MONTH, PM, RESOLVE_REMAP, SATURDAY, SECOND, SEPTEMBER, SUNDAY, THURSDAY, TUESDAY, UNDECIMBER, UNSET, WALLTIME_FIRST, WALLTIME_LAST, WALLTIME_NEXT_VALID, WEDNESDAY, WEEK_OF_MONTH, WEEK_OF_YEAR, WEEKDAY, WEEKEND, WEEKEND_CEASE, WEEKEND_ONSET, YEAR, YEAR_WOY, ZONE_OFFSET -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.This API is ICU internal only.DangiCalendar(TimeZone zone, ULocale locale) Deprecated.This API is ICU internal only.DangiCalendar(Date date) Deprecated.This API is ICU internal only. -
Method Summary
Methods inherited from class ChineseCalendar
add, getActualMaximum, getFieldResolutionTable, getTemporalMonthCode, handleComputeFields, handleComputeMonthStart, handleGetDateFormat, handleGetExtendedYear, handleGetLimit, handleGetMonthLength, haveDefaultCentury, inTemporalLeapYear, internalGetMonth, internalGetMonth, roll, setTemporalMonthCodeMethods inherited from class Calendar
after, before, clear, clear, clone, compareTo, complete, computeFields, computeGregorianFields, computeGregorianMonthStart, computeJulianDay, computeMillisInDay, computeMillisInDayLong, computeTime, computeZoneOffset, computeZoneOffset, equals, fieldDifference, fieldName, floorDivide, floorDivide, floorDivide, floorDivide, get, getActualMinimum, getAvailableLocales, getAvailableULocales, getDateAtTimePattern, getDateTimeFormat, getDateTimeFormat, getDateTimePattern, getDayOfWeekType, getDefaultDayInMonth, getDefaultMonthInYear, getDisplayName, getDisplayName, getFieldCount, getFirstDayOfWeek, getGreatestMinimum, getGregorianDayOfMonth, getGregorianDayOfYear, getGregorianMonth, getGregorianYear, getInstance, getInstance, getInstance, getInstance, getInstance, getInstance, getKeywordValuesForLocale, getLeastMaximum, getLimit, getLocale, getMaximum, getMinimalDaysInFirstWeek, getMinimum, getRelatedYear, getRelatedYearDifference, getRepeatedWallTimeOption, getSkippedWallTimeOption, getStamp, getTime, getTimeInMillis, getTimeZone, getWeekData, getWeekDataForRegion, getWeekendTransition, gregorianMonthLength, gregorianPreviousMonthLength, handleComputeJulianDay, handleCreateFields, handleGetDateFormat, handleGetDateFormat, handleGetDateFormat, handleGetYearLength, hashCode, internalGet, internalGet, internalGetTimeInMillis, internalSet, isEquivalentTo, isEra0CountingBackward, isGregorianLeapYear, isLenient, isSet, isWeekend, isWeekend, julianDayToDayOfWeek, julianDayToMillis, millisToJulianDay, newerField, newestStamp, pinField, prepareGetActual, resolveFields, roll, set, set, set, set, setFirstDayOfWeek, setLenient, setLocale, setMinimalDaysInFirstWeek, setRelatedYear, setRepeatedWallTimeOption, setSkippedWallTimeOption, setTime, setTimeInMillis, setTimeZone, setWeekData, toString, validateField, validateField, validateFields, weekNumber, weekNumber
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDDeprecated.- See Also:
-
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.This API is ICU internal only.Construct aDangiCalendarwith the default time zone and locale. -
DangiCalendar
Deprecated.This API is ICU internal only.Construct aDangiCalendarwith 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.This API is ICU internal only.Construct aDangiCalendarbased on the current time with the given time zone with the given locale.- Parameters:
zone- the given time zonelocale- the given locale
-
-
Method Details
-
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:
getTypein classChineseCalendar- Returns:
- legacy calendar type name string
-