|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.icu.util.Calendar
com.ibm.icu.util.GregorianCalendar
com.ibm.icu.util.TaiwanCalendar
public class TaiwanCalendar
TaiwanCalendar is a subclass of GregorianCalendar
that numbers years since 1912.
The Taiwan calendar is identical to the Gregorian calendar in all respects except for the year and era. Years are numbered since 1912 AD (Gregorian).
The Taiwan Calendar has one era: MINGUO.
This class should not be subclassed.
TaiwanCalendar usually should be instantiated using
Calendar.getInstance(ULocale) passing in a ULocale
with the tag "@calendar=roc".
Calendar,
GregorianCalendar,
Serialized Form| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.ibm.icu.util.Calendar |
|---|
Calendar.FormatConfiguration |
| Field Summary | |
|---|---|
static int |
BEFORE_MINGUO
Constant for the Taiwan Era for years before Minguo 1. |
static int |
MINGUO
Constant for the Taiwan Era for Minguo. |
| Fields inherited from class com.ibm.icu.util.GregorianCalendar |
|---|
AD, BC, invertGregorian, isGregorian |
| Fields inherited from class com.ibm.icu.util.Calendar |
|---|
AM, AM_PM, APRIL, AUGUST, BASE_FIELD_COUNT, DATE, DAY_OF_MONTH, DAY_OF_WEEK, DAY_OF_WEEK_IN_MONTH, DAY_OF_YEAR, DECEMBER, DOW_LOCAL, 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, NOVEMBER, OCTOBER, ONE_DAY, ONE_HOUR, ONE_MINUTE, ONE_SECOND, ONE_WEEK, PM, RESOLVE_REMAP, SATURDAY, SECOND, SEPTEMBER, SUNDAY, THURSDAY, TUESDAY, UNDECIMBER, UNSET, WEDNESDAY, WEEK_OF_MONTH, WEEK_OF_YEAR, WEEKDAY, WEEKEND, WEEKEND_CEASE, WEEKEND_ONSET, YEAR, YEAR_WOY, ZONE_OFFSET |
| Constructor Summary | |
|---|---|
TaiwanCalendar()
Constructs a TaiwanCalendar using the current time
in the default time zone with the default locale. |
|
TaiwanCalendar(Date date)
Constructs a TaiwanCalendar with the given date set
in the default time zone with the default locale. |
|
TaiwanCalendar(int year,
int month,
int date)
Constructs a TaiwanCalendar with the given date set
in the default time zone with the default locale. |
|
TaiwanCalendar(int year,
int month,
int date,
int hour,
int minute,
int second)
Constructs a TaiwanCalendar with the given date and time set for the default time zone with the default locale. |
|
TaiwanCalendar(Locale aLocale)
Constructs a TaiwanCalendar based on the current time
in the default time zone with the given locale. |
|
TaiwanCalendar(TimeZone zone)
Constructs a TaiwanCalendar based on the current time
in the given time zone with the default locale. |
|
TaiwanCalendar(TimeZone zone,
Locale aLocale)
Constructs a TaiwanCalendar based on the current time
in the given time zone with the given locale. |
|
TaiwanCalendar(TimeZone zone,
ULocale locale)
Constructs a TaiwanCalendar based on the current time
in the given time zone with the given locale. |
|
TaiwanCalendar(ULocale locale)
Constructs a TaiwanCalendar based on the current time
in the default time zone with the given locale. |
|
| Method Summary | |
|---|---|
String |
getType()
Return the current Calendar type. |
protected void |
handleComputeFields(int julianDay)
Override Calendar to compute several fields specific to the hybrid Gregorian-Julian calendar system. |
protected int |
handleGetExtendedYear()
Returns the extended year defined by the current fields. |
protected int |
handleGetLimit(int field,
int limitType)
Override GregorianCalendar. |
| Methods inherited from class com.ibm.icu.util.GregorianCalendar |
|---|
getActualMaximum, getActualMinimum, getGregorianChange, handleComputeJulianDay, handleComputeMonthStart, handleGetMonthLength, handleGetYearLength, hashCode, isEquivalentTo, isLeapYear, roll, setGregorianChange |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int BEFORE_MINGUO
Calendar.ERA,
Constant Field Valuespublic static final int MINGUO
Calendar.ERA,
Constant Field Values| Constructor Detail |
|---|
public TaiwanCalendar()
TaiwanCalendar using the current time
in the default time zone with the default locale.
public TaiwanCalendar(TimeZone zone)
TaiwanCalendar based on the current time
in the given time zone with the default locale.
zone - the given time zone.public TaiwanCalendar(Locale aLocale)
TaiwanCalendar based on the current time
in the default time zone with the given locale.
aLocale - the given locale.public TaiwanCalendar(ULocale locale)
TaiwanCalendar based on the current time
in the default time zone with the given locale.
locale - the given ulocale.
public TaiwanCalendar(TimeZone zone,
Locale aLocale)
TaiwanCalendar based on the current time
in the given time zone with the given locale.
zone - the given time zone.
public TaiwanCalendar(TimeZone zone,
ULocale locale)
TaiwanCalendar based on the current time
in the given time zone with the given locale.
zone - the given time zone.locale - the given ulocale.public TaiwanCalendar(Date date)
TaiwanCalendar with the given date set
in the default time zone with the default locale.
date - The date to which the new calendar is set.
public TaiwanCalendar(int year,
int month,
int date)
TaiwanCalendar with the given date set
in the default time zone with the default locale.
year - The value used to set the calendar's YEAR time field.month - The value used to set the calendar's MONTH time field.
The value is 0-based. e.g., 0 for January.date - The value used to set the calendar's DATE time field.
public TaiwanCalendar(int year,
int month,
int date,
int hour,
int minute,
int second)
year - The value used to set the calendar's YEAR time field.month - The value used to set the calendar's MONTH time field.
The value is 0-based. e.g., 0 for January.date - The value used to set the calendar's DATE time field.hour - The value used to set the calendar's HOUR_OF_DAY time field.minute - The value used to set the calendar's MINUTE time field.second - The value used to set the calendar's SECOND time field.| Method Detail |
|---|
protected int handleGetExtendedYear()
handleGetExtendedYear in class GregorianCalendarprotected void handleComputeFields(int julianDay)
handleComputeFields in class GregorianCalendar
protected int handleGetLimit(int field,
int limitType)
handleGetLimit in class GregorianCalendarfield - one of the above field numberslimitType - one of MINIMUM, GREATEST_MINIMUM,
LEAST_MAXIMUM, or MAXIMUMpublic String getType()
getType in class GregorianCalendar
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||