Uses of Class
com.ibm.icu.util.TimeZone
-
Packages that use TimeZone 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. -
-
Uses of TimeZone in com.ibm.icu.text
Methods in com.ibm.icu.text that return TimeZone Modifier and Type Method Description TimeZoneDateFormat. getTimeZone()Returns the time zone.TimeZoneDateIntervalFormat. getTimeZone()Get the TimeZoneTimeZoneTimeZoneFormat. 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.TimeZoneTimeZoneFormat. 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.TimeZoneTimeZoneFormat. parse(String text)Returns aTimeZonefor the given text.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 TimeZone Modifier and Type Method Description StringTimeZoneFormat. format(TimeZoneFormat.Style style, TimeZone tz, long date)Returns the display name of the time zone at the given date for the style.StringTimeZoneFormat. 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.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.util Modifier and Type Class Description classBasicTimeZone[icu] BasicTimeZone extendsTimeZonewith additional methods to access time zone transitions and rules.classRuleBasedTimeZoneRuleBasedTimeZoneis a concrete subclass ofTimeZonethat allows users to define custom historic time transition rules.classSimpleTimeZone[icu enhancement] ICU's replacement forjava.util.SimpleTimeZone. Methods, fields, and other functionality specific to ICU are labeled '[icu]'.classVTimeZoneVTimeZoneis a class implementing RFC2445 VTIMEZONE.Fields in com.ibm.icu.util declared as TimeZone Modifier and Type Field Description static TimeZoneTimeZone. GMT_ZONE[icu] The immutable GMT (=UTC) time zone.static TimeZoneTimeZone. UNKNOWN_ZONE[icu] The immutable (frozen) "unknown" time zone.Methods in com.ibm.icu.util that return TimeZone Modifier and Type Method Description TimeZoneTimeZone. clone()Overrides clone.TimeZoneTimeZone. 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.TimeZoneRuleBasedTimeZone. freeze()Freezes the object.TimeZoneSimpleTimeZone. freeze()Freezes the object.TimeZoneTimeZone. freeze()Freezes the object.TimeZoneVTimeZone. freeze()Freezes the object.static TimeZoneTimeZone. getDefault()Gets the defaultTimeZonefor this host.static TimeZoneTimeZone. getFrozenTimeZone(String ID)Gets theTimeZonefor the given ID.TimeZoneCalendar. getTimeZone()Returns the time zone.TimeZoneGlobalizationPreferences. 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.protected TimeZoneGlobalizationPreferences. 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 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.booleanBasicTimeZone. hasEquivalentTransitions(TimeZone tz, long start, long end)[icu] Checks if the time zone has equivalent transitions in the time range.booleanBasicTimeZone. hasEquivalentTransitions(TimeZone tz, long start, long end, boolean ignoreDstAmount)[icu] Checks if the time zone has equivalent transitions in the time range.booleanVTimeZone. hasEquivalentTransitions(TimeZone other, long start, long end)[icu] 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.GlobalizationPreferencesGlobalizationPreferences. setTimeZone(TimeZone timezone)Sets the timezone ID.Constructors in com.ibm.icu.util with parameters of type TimeZone Constructor Description BuddhistCalendar(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.Calendar(TimeZone zone, ULocale locale)Constructs a calendar with the specified time zone and locale.Calendar(TimeZone zone, Locale aLocale)Constructs a calendar with the specified time zone and 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.ChineseCalendar(TimeZone zone, ULocale locale, 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)[icu] 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.
-