Uses of Class
com.ibm.icu.util.TimeZone
Packages that use TimeZone
Package
Description
-
Uses of TimeZone in com.ibm.icu.impl
Subclasses of TimeZone in com.ibm.icu.implModifier and TypeClassDescriptionclassJavaTimeZone inherits com.ibm.icu.util.TimeZone and wraps java.util.TimeZone.classA time zone based on the Olson tz database.Fields in com.ibm.icu.impl declared as TimeZoneModifier and TypeFieldDescriptionprivate TimeZoneTimeZoneAdapter.zoneThe contained com.ibm.icu.util.TimeZone object.Methods in com.ibm.icu.impl that return TimeZoneModifier and TypeMethodDescriptionJavaTimeZone.cloneAsThawed()OlsonTimeZone.cloneAsThawed()JavaTimeZone.freeze()OlsonTimeZone.freeze()TimeZoneAdapter.unwrap()Return the java.util.TimeZone wrapped by this object.Methods in com.ibm.icu.impl with parameters of type TimeZoneModifier and TypeMethodDescriptionprivate StringTimeZoneGenericNames.formatGenericNonLocationName(TimeZone tz, TimeZoneGenericNames.GenericNameType type, long date) Private method to get a generic string, with fallback logics involved, that is, 1.static StringZoneMeta.getCanonicalCLDRID(TimeZone tz) 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 StringZoneMeta.getShortID(TimeZone tz) Returns the time zone's short ID for the zone.booleanOlsonTimeZone.hasSameRules(TimeZone other) private CalendarRelativeDateFormat.initializeCalendar(TimeZone zone, ULocale locale) initializes fCalendar from parameters.static TimeZoneGiven 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 TimeZoneModifierConstructorDescriptionTimeZoneAdapter(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.icuadapterModifier and TypeClassDescriptionclassTimeZoneJDK is an adapter class which wraps java.util.TimeZone and implements ICU4J TimeZone APIs.Methods in com.ibm.icu.impl.icuadapter that return TimeZoneModifier and TypeMethodDescriptionTimeZoneJDK.cloneAsThawed()TimeZoneJDK.freeze()static TimeZoneMethods in com.ibm.icu.impl.icuadapter with parameters of type TimeZone -
Uses of TimeZone in com.ibm.icu.impl.jdkadapter
Fields in com.ibm.icu.impl.jdkadapter declared as TimeZoneMethods in com.ibm.icu.impl.jdkadapter that return TimeZoneMethods in com.ibm.icu.impl.jdkadapter with parameters of type TimeZoneConstructors in com.ibm.icu.impl.jdkadapter with parameters of type TimeZone -
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 TimeZoneprivate TimeZoneTimeZoneFormat.getTimeZoneForOffset(int offset) Creates an instance of TimeZone for the given offsetTimeZoneFormat.parse(TimeZoneFormat.Style style, String text, ParsePosition pos, Output<TimeZoneFormat.TimeType> timeType) Returns aTimeZoneby 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 aTimeZoneby parsing the time zone string according to the parse position, the style and the parse options.final TimeZoneReturns aTimeZonefor the given text.final TimeZoneTimeZoneFormat.parse(String text, ParsePosition pos) Returns aTimeZoneby parsing the time zone string according to the given parse position.Methods in com.ibm.icu.text with parameters of type TimeZoneModifier and TypeMethodDescriptionfinal StringTimeZoneFormat.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.private StringTimeZoneFormat.formatExemplarLocation(TimeZone tz) Private method returning the time zone's exemplar location string.private StringTimeZoneFormat.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.voidDateFormat.setTimeZone(TimeZone zone) Sets the time zone for the calendar of this DateFormat object.voidDateIntervalFormat.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 TypeClassDescriptionclassBasicTimeZone extendsTimeZonewith additional methods to access time zone transitions and rules.classRuleBasedTimeZoneis a concrete subclass ofTimeZonethat allows users to define custom historic time transition rules.class.private static final classclassVTimeZoneis a class implementing RFC2445 VTIMEZONE.Fields in com.ibm.icu.util declared as TimeZoneModifier and TypeFieldDescriptionprivate static final TimeZoneChineseCalendar.CHINA_ZONEThe time zone used for performing astronomical computations.private static TimeZoneTimeZone.defaultZoneThe default time zone, or null if not set.static final TimeZoneTimeZone.GMT_ZONEThe immutable GMT (=UTC) time zone.private static final TimeZoneDangiCalendar.KOREA_ZONEDeprecated.The time zone used for performing astronomical computations for Dangi calendar.private TimeZoneGlobalizationPreferences.timezonestatic final TimeZoneTimeZone.UNKNOWN_ZONEThe immutable (frozen) "unknown" time zone.private TimeZoneCalendar.zoneTheTimeZoneused by this calendar.private TimeZoneChineseCalendar.zoneAstroThe zone used for the astronomical calculation of this Chinese calendar instance.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.TimeZone.ConstantZone.cloneAsThawed()VTimeZone.cloneAsThawed()Provides for the clone operation.static TimeZoneTimeZone.forLocaleOrDefault(Locale locale) Deprecated.This API is ICU internal only.static TimeZoneTimeZone.forULocaleOrDefault(ULocale locale) Deprecated.This API is ICU internal only.RuleBasedTimeZone.freeze()Freezes the object.SimpleTimeZone.freeze()Freezes the object.TimeZone.ConstantZone.freeze()TimeZone.freeze()Freezes the object.VTimeZone.freeze()Freezes the object.static TimeZoneTimeZone.getDefault()Gets the defaultTimeZonefor this host.static TimeZoneTimeZone.getFrozenTimeZone(String ID) Gets theTimeZonefor the given ID.Calendar.getTimeZone()Returns the time zone.GlobalizationPreferences.getTimeZone()Get the timezone.static TimeZoneTimeZone.getTimeZone(String ID) Gets theTimeZonefor the given ID.static TimeZoneTimeZone.getTimeZone(String ID, int type) Gets theTimeZonefor the given ID and the timezone type.private static TimeZoneTimeZone.getTimeZone(String id, int type, boolean frozen) Gets theTimeZonefor the given ID and the timezone type.protected TimeZoneGlobalizationPreferences.guessTimeZone()This function can be overridden by subclasses to use different heuristics.Methods in com.ibm.icu.util with parameters of type TimeZoneModifier and TypeMethodDescriptionprivate static LongCalendar.findPreviousZoneTransitionTime(TimeZone tz, int upperOffset, long upper, long lower) Implementing binary search for zone transition detection, used byCalendar.getPreviousZoneTransitionTime(TimeZone, long, long)static CalendarCalendar.getInstance(TimeZone zone) Returns a calendar using the specified time zone and default locale.static CalendarCalendar.getInstance(TimeZone zone, ULocale locale) Returns a calendar with the specified time zone and locale.static CalendarCalendar.getInstance(TimeZone zone, Locale aLocale) Returns a calendar with the specified time zone and locale.private static CalendarCalendar.getInstanceInternal(TimeZone tz, ULocale locale) private static LongCalendar.getPreviousZoneTransitionTime(TimeZone tz, long base, long duration) Find the previous zone transition within the specified duration.booleanBasicTimeZone.hasEquivalentTransitions(TimeZone tz, long start, long end) Checks if the time zone has equivalent transitions in the time range.booleanBasicTimeZone.hasEquivalentTransitions(TimeZone tz, long start, long end, boolean ignoreDstAmount) Checks if the time zone has equivalent transitions in the time range.booleanVTimeZone.hasEquivalentTransitions(TimeZone other, long start, long end) Checks if the time zone has equivalent transitions in the time range.booleanRuleBasedTimeZone.hasSameRules(TimeZone other) Returns true if this zone has the same rule and offset as another zone.booleanSimpleTimeZone.hasSameRules(TimeZone othr) Returns true if this zone has the same rules and offset as another zone.booleanTimeZone.hasSameRules(TimeZone other) Returns true if this zone has the same rule and offset as another zone.booleanVTimeZone.hasSameRules(TimeZone other) Returns true if this zone has the same rule and offset as another zone.static voidTimeZone.setDefault(TimeZone tz) Sets theTimeZonethat is returned by thegetDefaultmethod.static voidTimeZone.setICUDefault(TimeZone tz) Deprecated.This API is ICU internal only.voidCalendar.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 aBuddhistCalendarbased on the current time in the given time zone with the default locale.BuddhistCalendar(TimeZone zone, ULocale locale) Constructs aBuddhistCalendarbased on the current time in the given time zone with the given locale.BuddhistCalendar(TimeZone zone, Locale aLocale) Constructs aBuddhistCalendarbased on the current time in the given time zone with the given locale.protectedConstructs a calendar with the specified time zone and locale.protectedConstructs a calendar with the specified time zone and locale.protectedCECalendar(TimeZone zone) Constructs aCECalendarbased on the current time in the given time zone with the defaultFORMATlocale.protectedCECalendar(TimeZone zone, ULocale locale) Constructs aCECalendarbased on the current time in the given time zone with the given locale.protectedCECalendar(TimeZone zone, Locale aLocale) Constructs aCECalendarbased on the current time in the given time zone with the given locale.ChineseCalendar(TimeZone zone) Construct aChineseCalendarbased on the current time in the given time zone with the defaultFORMATlocale.ChineseCalendar(TimeZone zone, ULocale locale) Construct aChineseCalendarbased on the current time with the given time zone with the given locale.protectedChineseCalendar(TimeZone zone, ULocale locale, int epochYear, TimeZone zoneAstroCalc) Deprecated.This API is ICU internal only.ChineseCalendar(TimeZone zone, Locale aLocale) Construct aChineseCalendarbased on the current time in the given time zone with the given locale.CopticCalendar(TimeZone zone) Constructs aCopticCalendarbased on the current time in the given time zone with the default locale.CopticCalendar(TimeZone zone, ULocale locale) Constructs aCopticCalendarbased on the current time in the given time zone with the given locale.CopticCalendar(TimeZone zone, Locale aLocale) Constructs aCopticCalendarbased 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 aEthiopicCalendarbased on the current time in the given time zone with the default locale.EthiopicCalendar(TimeZone zone, ULocale locale) Constructs aEthiopicCalendarbased on the current time in the given time zone with the given locale.EthiopicCalendar(TimeZone zone, Locale aLocale) Constructs aEthiopicCalendarbased 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 defaultFORMATlocale.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 aHebrewCalendarbased on the current time in the given time zone with the defaultFORMATlocale.HebrewCalendar(TimeZone zone, ULocale locale) Constructs aHebrewCalendarbased on the current time in the given time zone with the given locale.HebrewCalendar(TimeZone zone, Locale aLocale) Constructs aHebrewCalendarbased on the current time in the given time zone with the given locale.IndianCalendar(TimeZone zone) Constructs aIndianCalendarbased on the current time in the given time zone with the defaultFORMATlocale.IndianCalendar(TimeZone zone, ULocale locale) Constructs aIndianCalendarbased on the current time in the given time zone with the given locale.IndianCalendar(TimeZone zone, Locale aLocale) Constructs aIndianCalendarbased on the current time in the given time zone with the given locale.IslamicCalendar(TimeZone zone) Constructs anIslamicCalendarbased on the current time in the given time zone with the defaultFORMATlocale.IslamicCalendar(TimeZone zone, ULocale locale) Constructs anIslamicCalendarbased on the current time in the given time zone with the given locale.IslamicCalendar(TimeZone zone, Locale aLocale) Constructs anIslamicCalendarbased on the current time in the given time zone with the given locale.JapaneseCalendar(TimeZone zone) Constructs aJapaneseCalendarbased on the current time in the given time zone with the default locale.JapaneseCalendar(TimeZone zone, ULocale locale) Constructs aJapaneseCalendarbased on the current time in the given time zone with the given locale.JapaneseCalendar(TimeZone zone, Locale aLocale) Constructs aJapaneseCalendarbased 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 aTaiwanCalendarbased on the current time in the given time zone with the default locale.TaiwanCalendar(TimeZone zone, ULocale locale) Constructs aTaiwanCalendarbased on the current time in the given time zone with the given locale.TaiwanCalendar(TimeZone zone, Locale aLocale) Constructs aTaiwanCalendarbased on the current time in the given time zone with the given locale.