Lines Matching defs:zone

248  *   <code>f</code> is changed or other constraints, such as time zone
548 * zone of this <code>Calendar</code> if the
559 * the time zone of this <code>Calendar</code> if the
813 * uses the time zone data to translate between locale and GMT time.
816 private TimeZone zone;
819 * <code>True</code> if zone references to a shared TimeZone object.
932 * Constructs a Calendar with the default time zone
943 * Constructs a calendar with the specified time zone and locale.
945 * @param zone the time zone to use
948 protected Calendar(TimeZone zone, Locale aLocale)
961 this.zone = zone;
966 * Gets a calendar using the default time zone and locale. The
968 * in the default time zone with the default locale.
980 * Gets a calendar using the specified time zone and default locale.
982 * in the given time zone with the default locale.
984 * @param zone the time zone to use
987 public static Calendar getInstance(TimeZone zone)
989 return createCalendar(zone, Locale.getDefault(Locale.Category.FORMAT));
993 * Gets a calendar using the default time zone and specified locale.
995 * in the default time zone with the given locale.
1008 * Gets a calendar with the specified time zone and locale.
1010 * in the given time zone with the given locale.
1012 * @param zone the time zone to use
1016 public static Calendar getInstance(TimeZone zone,
1019 return createCalendar(zone, aLocale);
1022 private static Calendar createCalendar(TimeZone zone,
1025 return new GregorianCalendar(zone, aLocale);
1895 zone.equals(that.zone);
1915 | (zone.hashCode() << 7);
2052 * Sets the time zone with the given time zone value.
2054 * @param value the given time zone.
2058 zone = value;
2060 /* Recompute the fields from the time using the new zone. This also
2062 * the time will be computed from the fields using the new zone, then
2073 * Gets the time zone.
2075 * @return the time zone object associated with this calendar.
2082 zone = (TimeZone) zone.clone();
2085 return zone;
2089 * Returns the time zone (without cloning).
2092 return zone;
2493 other.zone = (TimeZone) zone.clone();
2540 buffer.append(",zone=").append(zone);
2751 if (zone instanceof SimpleTimeZone) {
2752 String id = zone.getID();
2754 if (tz != null && tz.hasSameRules(zone) && tz.getID().equals(id)) {
2755 zone = tz;