Home | History | Annotate | Download | only in timezone

Lines Matching refs:zone

53         Zone.Seconds seconds = new Zone.Seconds();
54 for (Iterator it = Zone.getZoneSet().iterator(); it.hasNext(); ) {
55 Zone zone = (Zone)it.next();
56 String id = zone.id;
58 if (zone.minRecentOffset != zone.maxRecentOffset) {
61 + ": " + Zone.formatHours(zone.minRecentOffset)
62 + " != " + Zone.formatHours(zone.maxRecentOffset));
65 Set aliases = zone.getPurportedAliases();
71 Zone otherZone = Zone.make(otherId);
77 + id + " => " + Zone.bf.join(aliasesSet)
79 + otherId + " => " + Zone.bf.join(otherAliases));
81 if (zone.findOffsetOrdering(otherZone, seconds) != 0) {
96 Zone last = null;
97 Zone.Seconds diffDate = new Zone.Seconds();
98 for (Iterator it = Zone.getZoneSet().iterator(); it.hasNext();) {
99 Zone testZone = (Zone)it.next();
105 + ", " + Zone.formatHours(diff) + "hr");
121 for (Iterator it = Zone.getUniqueZoneSet().iterator(); it.hasNext();) {
122 Zone zone = (Zone)it.next();
123 System.out.println(zone.toString(count++));
158 static class Zone implements Comparable {
184 zoneSet.add(Zone.make(foo[i]));
186 Zone last = null;
187 Zone.Seconds diffDate = new Zone.Seconds();
189 for (Iterator it = Zone.getZoneSet().iterator(); it.hasNext();) {
190 Zone testZone = (Zone)it.next();
220 static public Zone make(String id) {
221 Zone result = (Zone)idToZone.get(id);
223 result = new Zone(id);
246 private TimeZone zone;
255 private Zone(String id) { // for interal use only; use make instead!
256 zone = TimeZone.getTimeZone(id);
269 if (zone.getOffset(lastDate) < zone.getOffset(endDate2)) lastDate = endDate2;
270 maxRecentOffset = minRecentOffset = minOffset = maxOffset = zone.getOffset(lastDate);
273 int lastOffset = zone.getOffset(endDate);
278 int currentOffset = zone.getOffset(currentDate);
290 int midOffset = zone.getOffset(mid);
307 public int findOffsetOrdering(Zone other, Seconds dateDiffFound) {
323 result = zone.getOffset(myIP) - other.zone.getOffset(myIP);
330 result = zone.getOffset(myIP) - other.zone.getOffset(myIP);
351 Zone other = (Zone)o;
378 public boolean isRealAlias(Zone z) {