Lines Matching defs:tz
95 // This time zone has no DST, but earlier, buggy code retrieved a TZ WITH DST
136 TimeZone tz = CalendarUtilities.tziStringToTimeZone(AMERICA_DAWSON_TIME);
137 assertEquals("America/Dawson", tz.getID());
138 tz = CalendarUtilities.tziStringToTimeZone(ASIA_CALCUTTA_TIME);
139 assertEquals("Asia/Calcutta", tz.getID());
140 tz = CalendarUtilities.tziStringToTimeZone(AUSTRALIA_ACT_TIME);
141 assertEquals("Australia/ACT", tz.getID());
145 // when the tz isn't found
146 tz = CalendarUtilities.tziStringToTimeZoneImpl(LENIENT_EASTERN_TIME,
148 assertEquals("America/Atikokan", tz.getID());
149 tz = CalendarUtilities.tziStringToTimeZoneImpl(LENIENT_EASTERN_TIME,
151 assertEquals("America/Detroit", tz.getID());
153 tz = CalendarUtilities.tziStringToTimeZone(GMT_UNKNOWN_DAYLIGHT_TIME);
154 int bias = tz.getOffset(System.currentTimeMillis());
156 // Make sure non-DST TZ's work properly when the tested zone is the default zone
158 tz = CalendarUtilities.tziStringToTimeZone(ARIZONA_TIME);
159 assertEquals("America/Phoenix", tz.getID());
161 tz = CalendarUtilities.tziStringToTimeZone(HAWAII_TIME);
162 assertEquals("Pacific/Honolulu", tz.getID());
163 // Make sure non-DST TZ's get the proper offset and DST status otherwise
167 tz = CalendarUtilities.tziStringToTimeZone(ARIZONA_TIME);
168 assertFalse("America/Phoenix".equals(tz.getID()));
169 assertFalse(tz.useDaylightTime());
170 // It doesn't matter what time is passed in, since neither TZ has dst
172 assertEquals(azTime.getOffset(now), tz.getOffset(now));
615 TimeZone tz = TimeZone.getTimeZone("US/Central");
617 assertTrue(tz.useDaylightTime());
619 GregorianCalendar calendar = new GregorianCalendar(tz);
626 CalendarUtilities.findTransitionDate(tz, startTime, endTime, false);
631 assertFalse(tz.inDaylightTime(beforeDate));
632 assertTrue(tz.inDaylightTime(afterDate));
635 transitionCalendar = CalendarUtilities.findTransitionDate(tz, transitionTime +
641 assertTrue(tz.inDaylightTime(beforeDate));
642 assertFalse(tz.inDaylightTime(afterDate));
645 tz = TimeZone.getTimeZone("Africa/Kinshasa");
647 assertFalse(tz.useDaylightTime());
649 calendar = new GregorianCalendar(tz);
655 transitionCalendar = CalendarUtilities.findTransitionDate(tz, startTime, endTime, false);
859 TimeZone tz = TimeZone.getTimeZone(tzs);
861 CalendarUtilities.timeZoneToVTimezone(tz, writer);
866 } else if (tz.useDaylightTime()) {
868 norulelist.add(tz.getID());