Uses of Class
com.ibm.icu.util.TimeZone
Packages that use TimeZone
Package
Description
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.
International calendars and other utility classes.
-
Uses of TimeZone in com.ibm.icu.text
Methods in com.ibm.icu.text that return TimeZoneModifier and TypeMethodDescriptionDateFormat.getTimeZone()
Returns the time zone.DateIntervalFormat.getTimeZone()
Get the TimeZoneTimeZoneFormat.parse
(TimeZoneFormat.Style style, String text, ParsePosition pos, Output<TimeZoneFormat.TimeType> timeType) Returns aTimeZone
by parsing the time zone string according to the parse position, the style and the default parse options.TimeZoneFormat.parse
(TimeZoneFormat.Style style, String text, ParsePosition pos, EnumSet<TimeZoneFormat.ParseOption> options, Output<TimeZoneFormat.TimeType> timeType) Returns aTimeZone
by parsing the time zone string according to the parse position, the style and the parse options.final TimeZone
Returns aTimeZone
for the given text.final TimeZone
TimeZoneFormat.parse
(String text, ParsePosition pos) Returns aTimeZone
by parsing the time zone string according to the given parse position.Methods in com.ibm.icu.text with parameters of type TimeZoneModifier and TypeMethodDescriptionfinal 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.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
DateFormat.setTimeZone
(TimeZone zone) Sets the time zone for the calendar of this DateFormat object.void
DateIntervalFormat.setTimeZone
(TimeZone zone) Set the TimeZone for the calendar used by this DateIntervalFormat object. -
Uses of TimeZone in com.ibm.icu.util
Subclasses of TimeZone in com.ibm.icu.utilModifier and TypeClassDescriptionclass
BasicTimeZone extendsTimeZone
with additional methods to access time zone transitions and rules.class
RuleBasedTimeZone
is a concrete subclass ofTimeZone
that allows users to define custom historic time transition rules.class
.class
VTimeZone
is a class implementing RFC2445 VTIMEZONE.Fields in com.ibm.icu.util declared as TimeZoneModifier and TypeFieldDescriptionstatic final TimeZone
TimeZone.GMT_ZONE
The immutable GMT (=UTC) time zone.static final TimeZone
TimeZone.UNKNOWN_ZONE
The immutable (frozen) "unknown" time zone.Methods in com.ibm.icu.util that return TimeZoneModifier and TypeMethodDescriptionRuleBasedTimeZone.cloneAsThawed()
Provides for the clone operation.SimpleTimeZone.cloneAsThawed()
Provides for the clone operation.TimeZone.cloneAsThawed()
Provides for the clone operation.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.RuleBasedTimeZone.freeze()
Freezes the object.SimpleTimeZone.freeze()
Freezes the object.TimeZone.freeze()
Freezes the object.VTimeZone.freeze()
Freezes the object.static TimeZone
TimeZone.getDefault()
Gets the defaultTimeZone
for this host.static TimeZone
TimeZone.getFrozenTimeZone
(String ID) Gets theTimeZone
for the given ID.Calendar.getTimeZone()
Returns the time zone.GlobalizationPreferences.getTimeZone()
Get the timezone.static TimeZone
TimeZone.getTimeZone
(String ID) Gets theTimeZone
for the given ID.static TimeZone
TimeZone.getTimeZone
(String ID, int type) Gets theTimeZone
for the given ID and the timezone type.protected TimeZone
GlobalizationPreferences.guessTimeZone()
This function can be overridden by subclasses to use different heuristics.Methods in com.ibm.icu.util with parameters of type TimeZoneModifier and TypeMethodDescriptionstatic Calendar
Calendar.getInstance
(TimeZone zone) Returns a calendar using the specified time zone and default locale.static Calendar
Calendar.getInstance
(TimeZone zone, ULocale locale) Returns a calendar with the specified time zone and locale.static Calendar
Calendar.getInstance
(TimeZone zone, Locale aLocale) Returns a calendar with the specified time zone and locale.boolean
BasicTimeZone.hasEquivalentTransitions
(TimeZone tz, long start, long end) Checks if the time zone has equivalent transitions in the time range.boolean
BasicTimeZone.hasEquivalentTransitions
(TimeZone tz, long start, long end, boolean ignoreDstAmount) Checks if the time zone has equivalent transitions in the time range.boolean
VTimeZone.hasEquivalentTransitions
(TimeZone other, long start, long end) Checks if the time zone has equivalent transitions in the time range.boolean
RuleBasedTimeZone.hasSameRules
(TimeZone other) Returns true if this zone has the same rule and offset as another zone.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
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 theTimeZone
that is returned by thegetDefault
method.static void
TimeZone.setICUDefault
(TimeZone tz) Deprecated.This API is ICU internal only.void
Calendar.setTimeZone
(TimeZone value) Sets the time zone with the given time zone value.GlobalizationPreferences.setTimeZone
(TimeZone timezone) Sets the timezone ID.Constructors in com.ibm.icu.util with parameters of type TimeZoneModifierConstructorDescriptionBuddhistCalendar
(TimeZone zone) Constructs aBuddhistCalendar
based on the current time in the given time zone with the default locale.BuddhistCalendar
(TimeZone zone, ULocale locale) Constructs aBuddhistCalendar
based on the current time in the given time zone with the given locale.BuddhistCalendar
(TimeZone zone, Locale aLocale) Constructs aBuddhistCalendar
based on the current time in the given time zone with the given locale.protected
Constructs a calendar with the specified time zone and locale.protected
Constructs a calendar with the specified time zone and locale.ChineseCalendar
(TimeZone zone) Construct aChineseCalendar
based on the current time in the given time zone with the defaultFORMAT
locale.ChineseCalendar
(TimeZone zone, ULocale locale) Construct aChineseCalendar
based on the current time with the given time zone with the given locale.protected
ChineseCalendar
(TimeZone zone, ULocale locale, int epochYear, TimeZone zoneAstroCalc) Deprecated.This API is ICU internal only.ChineseCalendar
(TimeZone zone, Locale aLocale) Construct aChineseCalendar
based on the current time in the given time zone with the given locale.CopticCalendar
(TimeZone zone) Constructs aCopticCalendar
based on the current time in the given time zone with the default locale.CopticCalendar
(TimeZone zone, ULocale locale) Constructs aCopticCalendar
based on the current time in the given time zone with the given locale.CopticCalendar
(TimeZone zone, Locale aLocale) Constructs aCopticCalendar
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 aEthiopicCalendar
based on the current time in the given time zone with the default locale.EthiopicCalendar
(TimeZone zone, ULocale locale) Constructs aEthiopicCalendar
based on the current time in the given time zone with the given locale.EthiopicCalendar
(TimeZone zone, Locale aLocale) Constructs aEthiopicCalendar
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 defaultFORMAT
locale.GregorianCalendar
(TimeZone zone, ULocale locale) Constructs a GregorianCalendar based on the current time in the given time zone with the given locale.GregorianCalendar
(TimeZone zone, Locale aLocale) Constructs a GregorianCalendar based on the current time in the given time zone with the given locale.HebrewCalendar
(TimeZone zone) Constructs aHebrewCalendar
based on the current time in the given time zone with the defaultFORMAT
locale.HebrewCalendar
(TimeZone zone, ULocale locale) Constructs aHebrewCalendar
based on the current time in the given time zone with the given locale.HebrewCalendar
(TimeZone zone, Locale aLocale) Constructs aHebrewCalendar
based on the current time in the given time zone with the given locale.IndianCalendar
(TimeZone zone) Constructs aIndianCalendar
based on the current time in the given time zone with the defaultFORMAT
locale.IndianCalendar
(TimeZone zone, ULocale locale) Constructs aIndianCalendar
based on the current time in the given time zone with the given locale.IndianCalendar
(TimeZone zone, Locale aLocale) Constructs aIndianCalendar
based on the current time in the given time zone with the given locale.IslamicCalendar
(TimeZone zone) Constructs anIslamicCalendar
based on the current time in the given time zone with the defaultFORMAT
locale.IslamicCalendar
(TimeZone zone, ULocale locale) Constructs anIslamicCalendar
based on the current time in the given time zone with the given locale.IslamicCalendar
(TimeZone zone, Locale aLocale) Constructs anIslamicCalendar
based on the current time in the given time zone with the given locale.JapaneseCalendar
(TimeZone zone) Constructs aJapaneseCalendar
based on the current time in the given time zone with the default locale.JapaneseCalendar
(TimeZone zone, ULocale locale) Constructs aJapaneseCalendar
based on the current time in the given time zone with the given locale.JapaneseCalendar
(TimeZone zone, Locale aLocale) Constructs aJapaneseCalendar
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, ULocale locale) Deprecated.This API is ICU internal only.PersianCalendar
(TimeZone zone, Locale aLocale) Deprecated.This API is ICU internal only.TaiwanCalendar
(TimeZone zone) Constructs aTaiwanCalendar
based on the current time in the given time zone with the default locale.TaiwanCalendar
(TimeZone zone, ULocale locale) Constructs aTaiwanCalendar
based on the current time in the given time zone with the given locale.TaiwanCalendar
(TimeZone zone, Locale aLocale) Constructs aTaiwanCalendar
based on the current time in the given time zone with the given locale.