Uses of Class
com.ibm.icu.util.TimeZone
-
Packages that use TimeZone Package Description com.ibm.icu.impl com.ibm.icu.impl.icuadapter com.ibm.icu.impl.jdkadapter 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. -
-
Uses of TimeZone in com.ibm.icu.impl
Subclasses of TimeZone in com.ibm.icu.impl Modifier and Type Class Description class
JavaTimeZone
JavaTimeZone inherits com.ibm.icu.util.TimeZone and wraps java.util.TimeZone.class
OlsonTimeZone
A time zone based on the Olson tz database.Fields in com.ibm.icu.impl declared as TimeZone Modifier and Type Field Description private TimeZone
TimeZoneAdapter. zone
The contained com.ibm.icu.util.TimeZone object.Methods in com.ibm.icu.impl that return TimeZone Modifier and Type Method Description TimeZone
JavaTimeZone. cloneAsThawed()
TimeZone
OlsonTimeZone. cloneAsThawed()
TimeZone
JavaTimeZone. freeze()
TimeZone
OlsonTimeZone. freeze()
TimeZone
TimeZoneAdapter. unwrap()
Return the java.util.TimeZone wrapped by this object.static TimeZone
JavaTimeConverters. zoneIdToTimeZone(java.time.ZoneId zoneId)
Deprecated.This API is ICU internal only.static TimeZone
JavaTimeConverters. zoneOffsetToTimeZone(java.time.ZoneOffset zoneOffset)
Deprecated.This API is ICU internal only.Methods in com.ibm.icu.impl with parameters of type TimeZone Modifier and Type Method Description private java.lang.String
TimeZoneGenericNames. formatGenericNonLocationName(TimeZone tz, TimeZoneGenericNames.GenericNameType type, long date)
Private method to get a generic string, with fallback logics involved, that is, 1.static java.lang.String
ZoneMeta. getCanonicalCLDRID(TimeZone tz)
java.lang.String
TimeZoneGenericNames. getDisplayName(TimeZone tz, TimeZoneGenericNames.GenericNameType type, long date)
Returns the display name of the time zone for the given name type at the given date, or null if the display name is not available.static java.lang.String
ZoneMeta. getShortID(TimeZone tz)
Returns the time zone's short ID for the zone.boolean
OlsonTimeZone. hasSameRules(TimeZone other)
private Calendar
RelativeDateFormat. initializeCalendar(TimeZone zone, ULocale locale)
initializes fCalendar from parameters.private static Calendar
JavaTimeConverters. millisToCalendar(long epochMillis, TimeZone timeZone)
Deprecated.static java.util.TimeZone
TimeZoneAdapter. wrap(TimeZone tz)
Given a java.util.TimeZone, wrap it in the appropriate adapter subclass of com.ibm.icu.util.TimeZone and return the adapter.Constructors in com.ibm.icu.impl with parameters of type TimeZone Constructor Description TimeZoneAdapter(TimeZone zone)
Constructs an adapter for a com.ibm.icu.util.TimeZone object. -
Uses of TimeZone in com.ibm.icu.impl.icuadapter
Subclasses of TimeZone in com.ibm.icu.impl.icuadapter Modifier and Type Class Description class
TimeZoneJDK
TimeZoneJDK is an adapter class which wraps java.util.TimeZone and implements ICU4J TimeZone APIs.Methods in com.ibm.icu.impl.icuadapter that return TimeZone Modifier and Type Method Description TimeZone
TimeZoneJDK. cloneAsThawed()
TimeZone
TimeZoneJDK. freeze()
static TimeZone
TimeZoneJDK. wrap(java.util.TimeZone jdkTz)
Methods in com.ibm.icu.impl.icuadapter with parameters of type TimeZone Modifier and Type Method Description boolean
TimeZoneJDK. hasSameRules(TimeZone other)
-
Uses of TimeZone in com.ibm.icu.impl.jdkadapter
Fields in com.ibm.icu.impl.jdkadapter declared as TimeZone Modifier and Type Field Description private TimeZone
TimeZoneICU. fIcuTz
Methods in com.ibm.icu.impl.jdkadapter that return TimeZone Modifier and Type Method Description TimeZone
TimeZoneICU. unwrap()
Methods in com.ibm.icu.impl.jdkadapter with parameters of type TimeZone Modifier and Type Method Description static java.util.TimeZone
TimeZoneICU. wrap(TimeZone icuTz)
Constructors in com.ibm.icu.impl.jdkadapter with parameters of type TimeZone Constructor Description TimeZoneICU(TimeZone icuTz)
-
Uses of TimeZone in com.ibm.icu.text
Methods in com.ibm.icu.text that return TimeZone Modifier and Type Method Description TimeZone
DateFormat. getTimeZone()
Returns the time zone.TimeZone
DateIntervalFormat. getTimeZone()
Get the TimeZoneprivate TimeZone
TimeZoneFormat. getTimeZoneForOffset(int offset)
Creates an instance of TimeZone for the given offsetTimeZone
TimeZoneFormat. parse(TimeZoneFormat.Style style, java.lang.String text, java.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.TimeZone
TimeZoneFormat. parse(TimeZoneFormat.Style style, java.lang.String text, java.text.ParsePosition pos, java.util.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.TimeZone
TimeZoneFormat. parse(java.lang.String text)
Returns aTimeZone
for the given text.TimeZone
TimeZoneFormat. parse(java.lang.String text, java.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 TimeZone Modifier and Type Method Description java.lang.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.java.lang.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.private java.lang.String
TimeZoneFormat. formatExemplarLocation(TimeZone tz)
Private method returning the time zone's exemplar location string.private java.lang.String
TimeZoneFormat. formatSpecific(TimeZone tz, TimeZoneNames.NameType stdType, TimeZoneNames.NameType dstType, long date, Output<TimeZoneFormat.TimeType> timeType)
Private method returning the time zone's specific format string.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.util Modifier and Type Class Description class
BasicTimeZone
BasicTimeZone extendsTimeZone
with additional methods to access time zone transitions and rules.class
RuleBasedTimeZone
RuleBasedTimeZone
is a concrete subclass ofTimeZone
that allows users to define custom historic time transition rules.class
SimpleTimeZone
.private static class
TimeZone.ConstantZone
class
VTimeZone
VTimeZone
is a class implementing RFC2445 VTIMEZONE.Fields in com.ibm.icu.util declared as TimeZone Modifier and Type Field Description private static TimeZone
ChineseCalendar. CHINA_ZONE
The time zone used for performing astronomical computations.private static TimeZone
TimeZone. defaultZone
The default time zone, or null if not set.static TimeZone
TimeZone. GMT_ZONE
The immutable GMT (=UTC) time zone.private static TimeZone
DangiCalendar. KOREA_ZONE
Deprecated.The time zone used for performing astronomical computations for Dangi calendar.private TimeZone
GlobalizationPreferences. timezone
static TimeZone
TimeZone. UNKNOWN_ZONE
The immutable (frozen) "unknown" time zone.private TimeZone
Calendar. zone
TheTimeZone
used by this calendar.private TimeZone
ChineseCalendar. zoneAstro
The zone used for the astronomical calculation of this Chinese calendar instance.Methods in com.ibm.icu.util that return TimeZone Modifier and Type Method Description TimeZone
RuleBasedTimeZone. cloneAsThawed()
Provides for the clone operation.TimeZone
SimpleTimeZone. cloneAsThawed()
Provides for the clone operation.TimeZone
TimeZone. cloneAsThawed()
Provides for the clone operation.TimeZone
TimeZone.ConstantZone. cloneAsThawed()
TimeZone
VTimeZone. cloneAsThawed()
Provides for the clone operation.static TimeZone
TimeZone. forLocaleOrDefault(java.util.Locale locale)
Deprecated.This API is ICU internal only.static TimeZone
TimeZone. forULocaleOrDefault(ULocale locale)
Deprecated.This API is ICU internal only.TimeZone
RuleBasedTimeZone. freeze()
Freezes the object.TimeZone
SimpleTimeZone. freeze()
Freezes the object.TimeZone
TimeZone.ConstantZone. freeze()
TimeZone
TimeZone. freeze()
Freezes the object.TimeZone
VTimeZone. freeze()
Freezes the object.static TimeZone
TimeZone. getDefault()
Gets the defaultTimeZone
for this host.static TimeZone
TimeZone. getFrozenTimeZone(java.lang.String ID)
Gets theTimeZone
for the given ID.TimeZone
Calendar. getTimeZone()
Returns the time zone.TimeZone
GlobalizationPreferences. getTimeZone()
Get the timezone.static TimeZone
TimeZone. getTimeZone(java.lang.String ID)
Gets theTimeZone
for the given ID.static TimeZone
TimeZone. getTimeZone(java.lang.String ID, int type)
Gets theTimeZone
for the given ID and the timezone type.private static TimeZone
TimeZone. getTimeZone(java.lang.String id, int type, boolean frozen)
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 TimeZone Modifier and Type Method Description private static java.lang.Long
Calendar. findPreviousZoneTransitionTime(TimeZone tz, int upperOffset, long upper, long lower)
Implementing binary search for zone transition detection, used byCalendar.getPreviousZoneTransitionTime(TimeZone, long, long)
static 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, java.util.Locale aLocale)
Returns a calendar with the specified time zone and locale.private static Calendar
Calendar. getInstanceInternal(TimeZone tz, ULocale locale)
private static java.lang.Long
Calendar. getPreviousZoneTransitionTime(TimeZone tz, long base, long duration)
Find the previous zone transition within the specified duration.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
GlobalizationPreferences. setTimeZone(TimeZone timezone)
Sets the timezone ID.Constructors in com.ibm.icu.util with parameters of type TimeZone Constructor Description BuddhistCalendar(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, java.util.Locale aLocale)
Constructs aBuddhistCalendar
based on the current time in the given time zone with the given locale.Calendar(TimeZone zone, ULocale locale)
Constructs a calendar with the specified time zone and locale.Calendar(TimeZone zone, java.util.Locale aLocale)
Constructs a calendar with the specified time zone and locale.CECalendar(TimeZone zone)
Constructs aCECalendar
based on the current time in the given time zone with the defaultFORMAT
locale.CECalendar(TimeZone zone, ULocale locale)
Constructs aCECalendar
based on the current time in the given time zone with the given locale.CECalendar(TimeZone zone, java.util.Locale aLocale)
Constructs aCECalendar
based on the current time in the given time zone with the given 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.ChineseCalendar(TimeZone zone, ULocale locale, int epochYear, TimeZone zoneAstroCalc)
Deprecated.This API is ICU internal only.ChineseCalendar(TimeZone zone, java.util.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, java.util.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, java.util.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, java.util.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, java.util.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, java.util.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, java.util.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, java.util.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, java.util.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, java.util.Locale aLocale)
Constructs aTaiwanCalendar
based on the current time in the given time zone with the given locale.
-