Package com.ibm.icu.util
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 com.ibm.icu.util.Calendar
Calendar.FormatConfiguration, Calendar.PatternData, Calendar.WeekData
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
Deprecated.The start year of the Korean traditional calendar (Dan-gi) is the inaugural year of Dan-gun (BC 2333).private static final TimeZone
Deprecated.The time zone used for performing astronomical computations for Dangi calendar.private static final long
Deprecated.Fields inherited from class com.ibm.icu.util.ChineseCalendar
CHINESE_DATE_PRECEDENCE
Fields inherited from class com.ibm.icu.util.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 com.ibm.icu.util.ChineseCalendar
add, getFieldResolutionTable, getTemporalMonthCode, handleComputeFields, handleComputeMonthStart, handleGetDateFormat, handleGetExtendedYear, handleGetLimit, handleGetMonthLength, haveDefaultCentury, inTemporalLeapYear, internalGetMonth, internalGetMonth, roll, setTemporalMonthCode
Methods inherited from class com.ibm.icu.util.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, getActualMaximum, 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, 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:
-
DANGI_EPOCH_YEAR
private static final int DANGI_EPOCH_YEARDeprecated.The start year of the Korean traditional calendar (Dan-gi) is the inaugural year of Dan-gun (BC 2333).- 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 aDangiCalendar
with the default time zone and locale. -
DangiCalendar
Deprecated.This API is ICU internal only.Construct aDangiCalendar
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.This API is ICU internal only.Construct aDangiCalendar
based 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:
getType
in classChineseCalendar
- Returns:
- legacy calendar type name string
-