Package | Description |
---|---|
com.ibm.icu.text |
Extensions and enhancements to java.text to support unicode transforms, UnicodeSet, surrogate char utilities, UCA collation, normalization, break iteration (rule and dictionary based), enhanced number format, international string searching, and arabic shaping.
|
com.ibm.icu.util |
International calendars and other utility classes.
|
Modifier and Type | Method and Description |
---|---|
TimeZone |
DateIntervalFormat.getTimeZone()
Get the TimeZone
|
TimeZone |
DateFormat.getTimeZone()
Returns the time zone.
|
TimeZone |
TimeZoneFormat.parse(String text)
Returns a
TimeZone for the given text. |
TimeZone |
TimeZoneFormat.parse(String text,
ParsePosition pos)
Returns a
TimeZone by parsing the time zone string according to
the given parse position. |
TimeZone |
TimeZoneFormat.parse(TimeZoneFormat.Style style,
String text,
ParsePosition pos,
EnumSet<TimeZoneFormat.ParseOption> options,
Output<TimeZoneFormat.TimeType> timeType)
Returns a
TimeZone by parsing the time zone string according to
the parse position, the style and the parse options. |
TimeZone |
TimeZoneFormat.parse(TimeZoneFormat.Style style,
String text,
ParsePosition pos,
Output<TimeZoneFormat.TimeType> timeType)
Returns a
TimeZone by parsing the time zone string according to
the parse position, the style and the default parse options. |
Modifier and Type | Method and Description |
---|---|
String |
TimeZoneFormat.format(TimeZoneFormat.Style style,
TimeZone tz,
long date)
Returns the display name of the time zone at the given date for
the style.
|
String |
TimeZoneFormat.format(TimeZoneFormat.Style style,
TimeZone tz,
long date,
Output<TimeZoneFormat.TimeType> timeType)
Returns the display name of the time zone at the given date for
the style.
|
void |
DateIntervalFormat.setTimeZone(TimeZone zone)
Set the TimeZone for the calendar used by this DateIntervalFormat object.
|
void |
DateFormat.setTimeZone(TimeZone zone)
Sets the time zone for the calendar of this DateFormat object.
|
Modifier and Type | Class and Description |
---|---|
class |
BasicTimeZone
[icu] BasicTimeZone extends
TimeZone with additional methods to access
time zone transitions and rules. |
class |
RuleBasedTimeZone
RuleBasedTimeZone is a concrete subclass of TimeZone that allows users to define
custom historic time transition rules. |
class |
SimpleTimeZone
[icu enhancement] ICU's replacement for
java.util.SimpleTimeZone . |
class |
VTimeZone
VTimeZone is a class implementing RFC2445 VTIMEZONE. |
Modifier and Type | Field and Description |
---|---|
static TimeZone |
TimeZone.GMT_ZONE
[icu] The immutable GMT (=UTC) time zone.
|
static TimeZone |
TimeZone.UNKNOWN_ZONE
[icu] The immutable (frozen) "unknown" time zone.
|
Modifier and Type | Method and Description |
---|---|
TimeZone |
SimpleTimeZone.cloneAsThawed()
Provides for the clone operation.
|
TimeZone |
TimeZone.cloneAsThawed()
Provides for the clone operation.
|
TimeZone |
RuleBasedTimeZone.cloneAsThawed()
Provides for the clone operation.
|
TimeZone |
VTimeZone.cloneAsThawed()
Provides for the clone operation.
|
static TimeZone |
TimeZone.forLocaleOrDefault(Locale locale)
Deprecated.
This API is ICU internal only.
|
static TimeZone |
TimeZone.forULocaleOrDefault(ULocale locale)
Deprecated.
This API is ICU internal only.
|
TimeZone |
SimpleTimeZone.freeze()
Freezes the object.
|
TimeZone |
TimeZone.freeze()
Freezes the object.
|
TimeZone |
RuleBasedTimeZone.freeze()
Freezes the object.
|
TimeZone |
VTimeZone.freeze()
Freezes the object.
|
static TimeZone |
TimeZone.getDefault()
Gets the default
TimeZone for this host. |
static TimeZone |
TimeZone.getFrozenTimeZone(String ID)
Gets the
TimeZone for the given ID. |
TimeZone |
GlobalizationPreferences.getTimeZone()
Get the timezone.
|
TimeZone |
Calendar.getTimeZone()
Returns the time zone.
|
static TimeZone |
TimeZone.getTimeZone(String ID)
Gets the
TimeZone for the given ID. |
static TimeZone |
TimeZone.getTimeZone(String ID,
int type)
Gets the
TimeZone for the given ID and the timezone type. |
protected TimeZone |
GlobalizationPreferences.guessTimeZone()
This function can be overridden by subclasses to use different heuristics.
|
Modifier and Type | Method and Description |
---|---|
static Calendar |
Calendar.getInstance(TimeZone zone)
Returns a calendar using the specified time zone and default locale.
|
static Calendar |
Calendar.getInstance(TimeZone zone,
Locale aLocale)
Returns a calendar with the specified time zone and locale.
|
static Calendar |
Calendar.getInstance(TimeZone zone,
ULocale locale)
Returns a calendar with the specified time zone and locale.
|
boolean |
BasicTimeZone.hasEquivalentTransitions(TimeZone tz,
long start,
long end)
[icu] Checks if the time zone has equivalent transitions in the time range.
|
boolean |
VTimeZone.hasEquivalentTransitions(TimeZone other,
long start,
long end)
[icu] Checks if the time zone has equivalent transitions in the time range.
|
boolean |
BasicTimeZone.hasEquivalentTransitions(TimeZone tz,
long start,
long end,
boolean ignoreDstAmount)
[icu] Checks if the time zone has equivalent transitions in the time range.
|
boolean |
SimpleTimeZone.hasSameRules(TimeZone othr)
Returns true if this zone has the same rules and offset as another zone.
|
boolean |
TimeZone.hasSameRules(TimeZone other)
Returns true if this zone has the same rule and offset as another zone.
|
boolean |
RuleBasedTimeZone.hasSameRules(TimeZone other)
Returns true if this zone has the same rule and offset as another zone.
|
boolean |
VTimeZone.hasSameRules(TimeZone other)
Returns true if this zone has the same rule and offset as another zone.
|
static void |
TimeZone.setDefault(TimeZone tz)
Sets the
TimeZone that is returned by the getDefault
method. |
static void |
TimeZone.setICUDefault(TimeZone tz)
Deprecated.
This API is ICU internal only.
|
GlobalizationPreferences |
GlobalizationPreferences.setTimeZone(TimeZone timezone)
Sets the timezone ID.
|
void |
Calendar.setTimeZone(TimeZone value)
Sets the time zone with the given time zone value.
|
Constructor and Description |
---|
BuddhistCalendar(TimeZone zone)
Constructs a
BuddhistCalendar based on the current time
in the given time zone with the default locale. |
BuddhistCalendar(TimeZone zone,
Locale aLocale)
Constructs a
BuddhistCalendar based on the current time
in the given time zone with the given locale. |
BuddhistCalendar(TimeZone zone,
ULocale locale)
Constructs a
BuddhistCalendar based on the current time
in the given time zone with the given locale. |
Calendar(TimeZone zone,
Locale aLocale)
Constructs a calendar with the specified time zone and locale.
|
Calendar(TimeZone zone,
ULocale locale)
Constructs a calendar with the specified time zone and locale.
|
ChineseCalendar(TimeZone zone)
Construct a
ChineseCalendar based on the current time
in the given time zone with the default FORMAT locale. |
ChineseCalendar(TimeZone zone,
Locale aLocale)
Construct a
ChineseCalendar based on the current time
in the given time zone with the given locale. |
ChineseCalendar(TimeZone zone,
ULocale locale)
Construct a
ChineseCalendar based on the current time
with the given time zone with the given locale. |
ChineseCalendar(TimeZone zone,
ULocale locale,
int epochYear,
TimeZone zoneAstroCalc)
Deprecated.
This API is ICU internal only.
|
CopticCalendar(TimeZone zone)
Constructs a
CopticCalendar based on the current time
in the given time zone with the default locale. |
CopticCalendar(TimeZone zone,
Locale aLocale)
Constructs a
CopticCalendar based on the current time
in the given time zone with the given locale. |
CopticCalendar(TimeZone zone,
ULocale locale)
Constructs a
CopticCalendar based on the current time
in the given time zone with the given locale. |
DangiCalendar(TimeZone zone,
ULocale locale)
Deprecated.
This API is ICU internal only.
|
EthiopicCalendar(TimeZone zone)
Constructs a
EthiopicCalendar based on the current time
in the given time zone with the default locale. |
EthiopicCalendar(TimeZone zone,
Locale aLocale)
Constructs a
EthiopicCalendar based on the current time
in the given time zone with the given locale. |
EthiopicCalendar(TimeZone zone,
ULocale locale)
Constructs a
EthiopicCalendar based on the current time
in the given time zone with the given locale. |
GregorianCalendar(TimeZone zone)
Constructs a GregorianCalendar based on the current time
in the given time zone with the default
FORMAT locale. |
GregorianCalendar(TimeZone zone,
Locale aLocale)
[icu] Constructs a GregorianCalendar based on the current time
in the given time zone with the given locale.
|
GregorianCalendar(TimeZone zone,
ULocale locale)
Constructs a GregorianCalendar based on the current time
in the given time zone with the given locale.
|
HebrewCalendar(TimeZone zone)
Constructs a
HebrewCalendar based on the current time
in the given time zone with the default FORMAT locale. |
HebrewCalendar(TimeZone zone,
Locale aLocale)
Constructs a
HebrewCalendar based on the current time
in the given time zone with the given locale. |
HebrewCalendar(TimeZone zone,
ULocale locale)
Constructs a
HebrewCalendar based on the current time
in the given time zone with the given locale. |
IndianCalendar(TimeZone zone)
Constructs a
IndianCalendar based on the current time
in the given time zone with the default FORMAT locale. |
IndianCalendar(TimeZone zone,
Locale aLocale)
Constructs a
IndianCalendar based on the current time
in the given time zone with the given locale. |
IndianCalendar(TimeZone zone,
ULocale locale)
Constructs a
IndianCalendar based on the current time
in the given time zone with the given locale. |
IslamicCalendar(TimeZone zone)
Constructs an
IslamicCalendar based on the current time
in the given time zone with the default FORMAT locale. |
IslamicCalendar(TimeZone zone,
Locale aLocale)
Constructs an
IslamicCalendar based on the current time
in the given time zone with the given locale. |
IslamicCalendar(TimeZone zone,
ULocale locale)
Constructs an
IslamicCalendar based on the current time
in the given time zone with the given locale. |
JapaneseCalendar(TimeZone zone)
Constructs a
JapaneseCalendar based on the current time
in the given time zone with the default locale. |
JapaneseCalendar(TimeZone zone,
Locale aLocale)
Constructs a
JapaneseCalendar based on the current time
in the given time zone with the given locale. |
JapaneseCalendar(TimeZone zone,
ULocale locale)
Constructs a
JapaneseCalendar based on the current time
in the given time zone with the given locale. |
PersianCalendar(TimeZone zone)
Deprecated.
This API is ICU internal only.
|
PersianCalendar(TimeZone zone,
Locale aLocale)
Deprecated.
This API is ICU internal only.
|
PersianCalendar(TimeZone zone,
ULocale locale)
Deprecated.
This API is ICU internal only.
|
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. |
Copyright © 2016 Unicode, Inc. and others.