Lines Matching defs:zone

249  *   <code>f</code> is changed or other constraints, such as time zone
549 * zone of this <code>Calendar</code> if the
560 * the time zone of this <code>Calendar</code> if the
814 * uses the time zone data to translate between locale and GMT time.
817 private TimeZone zone;
820 * <code>True</code> if zone references to a shared TimeZone object.
933 * Constructs a Calendar with the default time zone
944 * Constructs a calendar with the specified time zone and locale.
946 * @param zone the time zone to use
949 protected Calendar(TimeZone zone, Locale aLocale)
955 this.zone = zone;
960 * Gets a calendar using the default time zone and locale. The
962 * in the default time zone with the default locale.
974 * Gets a calendar using the specified time zone and default locale.
976 * in the given time zone with the default locale.
978 * @param zone the time zone to use
981 public static Calendar getInstance(TimeZone zone)
983 return createCalendar(zone, Locale.getDefault(Locale.Category.FORMAT));
987 * Gets a calendar using the default time zone and specified locale.
989 * in the default time zone with the given locale.
1002 * Gets a calendar with the specified time zone and locale.
1004 * in the given time zone with the given locale.
1006 * @param zone the time zone to use
1010 public static Calendar getInstance(TimeZone zone,
1013 return createCalendar(zone, aLocale);
1016 private static Calendar createCalendar(TimeZone zone,
1028 cal = new BuddhistCalendar(zone, aLocale);
1030 cal = new GregorianCalendar(zone, aLocale);
1033 cal = new JapaneseImperialCalendar(zone, aLocale);
1035 cal = new BuddhistCalendar(zone, aLocale);
1039 cal = new GregorianCalendar(zone, aLocale);
1134 && (zone instanceof ZoneInfo) && !((ZoneInfo)zone).isDirty()) {
1912 zone.equals(that.zone);
1932 | (zone.hashCode() << 7);
2069 * Sets the time zone with the given time zone value.
2071 * @param value the given time zone.
2075 zone = value;
2077 /* Recompute the fields from the time using the new zone. This also
2079 * the time will be computed from the fields using the new zone, then
2090 * Gets the time zone.
2092 * @return the time zone object associated with this calendar.
2099 zone = (TimeZone) zone.clone();
2102 return zone;
2106 * Returns the time zone (without cloning).
2109 return zone;
2510 other.zone = (TimeZone) zone.clone();
2557 buffer.append(",zone=").append(zone);
2724 if (zone instanceof ZoneInfo) {
2725 SimpleTimeZone stz = ((ZoneInfo)zone).getLastRuleInstance();
2727 stz = new SimpleTimeZone(zone.getRawOffset(), zone.getID());
2729 savedZone = zone;
2730 zone = stz;
2741 zone = savedZone;
2785 // If there's a ZoneInfo object, use it for zone.
2809 zone = zi;
2816 if (zone instanceof SimpleTimeZone) {
2817 String id = zone.getID();
2819 if (tz != null && tz.hasSameRules(zone) && tz.getID().equals(id)) {
2820 zone = tz;