public class TaiwanCalendar
extends GregorianCalendar
| java.lang.Object | |||
| android.icu.util.Calendar | |||
| android.icu.util.GregorianCalendar | |||
| android.icu.util.TaiwanCalendar | |||
TaiwanCalendar是 TaiwanCalendar的一个子类,自1912年以来 GregorianCalendar数年。
除历年和年代以外,台历在各个方面都与公历相同。 自公元1912年以来(格里高利),年数有所增加。
台湾历法有一个时代: MINGUO 。
这个类不应该被分类。
通常应使用 getInstance(ULocale)传递 ULocale标签 "@calendar=roc"来实例化 "@calendar=roc" 。
也可以看看:
常量(Constants) |
|
|---|---|
int |
BEFORE_MINGUO 民国前几年台湾时代的不变1。 |
int |
MINGUO 台湾民国时代的不变。 |
Inherited constants |
|---|
android.icu.util.GregorianCalendar
|
android.icu.util.Calendar
|
Inherited fields |
|---|
android.icu.util.GregorianCalendar
|
android.icu.util.Calendar
|
Public constructors |
|
|---|---|
TaiwanCalendar() 使用缺省语言环境的默认时区中的当前时间构造 |
|
TaiwanCalendar(TimeZone zone) 根据给定时区中的当前时间和默认语言环境构造一个 |
|
TaiwanCalendar(Locale aLocale) 根据给定语言环境的默认时区中的当前时间构造一个 |
|
TaiwanCalendar(ULocale locale) 根据给定语言环境的默认时区中的当前时间构造一个 |
|
TaiwanCalendar(TimeZone zone, Locale aLocale) 基于给定语言环境给定时区中的当前时间构造一个 |
|
TaiwanCalendar(TimeZone zone, ULocale locale) 根据给定语言环境给定时区中的当前时间构造一个 |
|
TaiwanCalendar(Date date) 使用缺省区域设置在默认时区中设置的给定日期构造 |
|
TaiwanCalendar(int year, int month, int date) 使用缺省语言环境在默认时区中设置的给定日期构造 |
|
TaiwanCalendar(int year, int month, int date, int hour, int minute, int second) 使用默认语言环境设置默认时区的给定日期和时间构造一个TaiwanCalendar。 |
|
公共方法(Public methods) |
|
|---|---|
String |
getType() [icu]返回此Calendar对象的日历类型名称字符串。 |
Protected methods |
|
|---|---|
void |
handleComputeFields(int julianDay) 重写日历以计算特定于混合公历 - 儒略历日历系统的几个字段。 |
int |
handleGetExtendedYear() 返回当前字段定义的扩展年份。 |
int |
handleGetLimit(int field, int limitType) 覆盖GregorianCalendar。 |
继承方法(Inherited methods) |
|
|---|---|
android.icu.util.GregorianCalendar
|
|
android.icu.util.Calendar
|
|
java.lang.Object
|
|
java.lang.Comparable
|
|
int BEFORE_MINGUO
民国1年前的台湾时代是不变的。布雷诺米诺1是格里高利1911年,民国2年前是格里高利1910年等等。
也可以看看:
常量值:0(0x00000000)
TaiwanCalendar (TimeZone zone)
根据给定时区中的当前时间和默认语言环境构造一个 TaiwanCalendar 。
| 参数(Parameters) | |
|---|---|
zone |
TimeZone: the given time zone. |
TaiwanCalendar (Locale aLocale)
根据给定语言环境的默认时区中的当前时间构造一个 TaiwanCalendar 。
| 参数(Parameters) | |
|---|---|
aLocale |
Locale: the given locale. |
TaiwanCalendar (ULocale locale)
根据给定语言环境的默认时区中的当前时间构造一个 TaiwanCalendar 。
| 参数(Parameters) | |
|---|---|
locale |
ULocale: the given ulocale. |
TaiwanCalendar (TimeZone zone, Locale aLocale)
根据给定语言环境给定时区中的当前时间构造一个 TaiwanCalendar 。
| 参数(Parameters) | |
|---|---|
zone |
TimeZone: the given time zone. |
aLocale |
Locale
|
TaiwanCalendar (TimeZone zone, ULocale locale)
根据给定语言环境给定时区内的当前时间构造一个 TaiwanCalendar 。
| 参数(Parameters) | |
|---|---|
zone |
TimeZone: the given time zone. |
locale |
ULocale: the given ulocale. |
TaiwanCalendar (Date date)
使用缺省区域设置在缺省时区中设置的给定日期构造 TaiwanCalendar 。
| 参数(Parameters) | |
|---|---|
date |
Date: The date to which the new calendar is set. |
TaiwanCalendar (int year,
int month,
int date)
使用缺省区域设置在默认时区中设置的给定日期构造 TaiwanCalendar 。
| 参数(Parameters) | |
|---|---|
year |
int: The value used to set the calendar's YEAR time field. |
month |
int: The value used to set the calendar's MONTH time field. The value is 0-based. e.g., 0 for January. |
date |
int: The value used to set the calendar's DATE time field. |
TaiwanCalendar (int year,
int month,
int date,
int hour,
int minute,
int second)
使用默认语言环境设置默认时区的给定日期和时间构造一个TaiwanCalendar。
| 参数(Parameters) | |
|---|---|
year |
int: The value used to set the calendar's YEAR time field. |
month |
int: The value used to set the calendar's MONTH time field. The value is 0-based. e.g., 0 for January. |
date |
int: The value used to set the calendar's DATE time field. |
hour |
int: The value used to set the calendar's HOUR_OF_DAY time field. |
minute |
int: The value used to set the calendar's MINUTE time field. |
second |
int: The value used to set the calendar's SECOND time field. |
String getType ()
[icu]返回此Calendar对象的日历类型名称字符串。 返回的字符串是传统的ICU日历属性值,例如“gregorian”或“japanese”。
请参阅http://www.unicode.org/reports/tr35/#Key_Type_Definitions中有关语言环境ID的日历属性的type =“old type name”
| 返回(Returns) | |
|---|---|
String |
legacy calendar type name string |
void handleComputeFields (int julianDay)
重写日历以计算特定于混合公历 - 儒略历日历系统的几个字段。 这些是:
| 参数(Parameters) | |
|---|---|
julianDay |
int
|
int handleGetExtendedYear ()
返回当前字段定义的扩展年份。 这将使用EXTENDED_YEAR字段或特定于日历系统的YEAR和超年字段(如ERA),具体取决于哪一组字段较新。
| 返回(Returns) | |
|---|---|
int |
the extended year |
int handleGetLimit (int field,
int limitType)
覆盖GregorianCalendar。 只有一个台湾时代。 我们应该在这里处理YEAR,YEAR_WOY和EXTENDED_YEAR,以实现1..5000000的范围,但这并不重要。
| 参数(Parameters) | |
|---|---|
field |
int: one of the above field numbers |
limitType |
int: one of MINIMUM, GREATEST_MINIMUM, LEAST_MAXIMUM, or MAXIMUM |
| 返回(Returns) | |
|---|---|
int |
|