Home
last modified time | relevance | path

Searched refs:getTimeZone (Results 1 – 25 of 65) sorted by relevance

123

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DTimeZoneTest.java51 TimeZone st1 = TimeZone.getTimeZone("America/New_York"); in test_getDSTSavings()
56 st1 = TimeZone.getTimeZone("Australia/Lord_Howe"); in test_getDSTSavings()
78 TimeZone st1 = TimeZone.getTimeZone("EST"); in test_getOffset_long()
86 st1 = TimeZone.getTimeZone("EST"); in test_getOffset_long()
110 "GMT", TimeZone.getTimeZone("SMT-8").getID()); in test_getTimeZoneLjava_lang_String()
112 "GMT", TimeZone.getTimeZone("GMT+28:70").getID()); in test_getTimeZoneLjava_lang_String()
114 "GMT", TimeZone.getTimeZone("GMT+28:30").getID()); in test_getTimeZoneLjava_lang_String()
116 "GMT", TimeZone.getTimeZone("GMT+8:70").getID()); in test_getTimeZoneLjava_lang_String()
118 "GMT", TimeZone.getTimeZone("GMT+3:").getID()); in test_getTimeZoneLjava_lang_String()
120 "GMT", TimeZone.getTimeZone("GMT+3:0").getID()); in test_getTimeZoneLjava_lang_String()
[all …]
DSimpleTimeZoneTest.java262 TimeZone tz = TimeZone.getTimeZone("EST"); in test_equalsLjava_lang_Object()
299 st1 = new SimpleTimeZone(TimeZone.getTimeZone("EST").getRawOffset(), "EST"); in test_getOffsetIIIIII()
304 st1 = new SimpleTimeZone(TimeZone.getTimeZone("EST").getRawOffset(), "EST"); in test_getOffsetIIIIII()
356 st1 = new SimpleTimeZone(TimeZone.getTimeZone("EST").getRawOffset(), "EST"); in test_getRawOffset()
371 assertTrue(TimeZone.getTimeZone("EST").hashCode() != 0); in test_hashCode()
402 TimeZone tz = TimeZone.getTimeZone("EST"); in test_inDaylightTimeLjava_util_Date()
603 st1 = new SimpleTimeZone(TimeZone.getTimeZone("EST").getRawOffset(), "EST"); in test_setRawOffsetI()
704 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in test_setStartRuleIIIIZ()
707 SimpleTimeZone st = new SimpleTimeZone(TimeZone.getTimeZone("EST").getRawOffset(), "EST"); in test_setStartRuleIIIIZ()
780 String string = TimeZone.getTimeZone("EST").toString(); in test_toString()
[all …]
DGregorianCalendarTest.java31 private static final TimeZone AMERICA_CHICAGO = TimeZone.getTimeZone("America/Chicago");
32 private static final TimeZone AMERICA_NEW_YORK = TimeZone.getTimeZone("America/New_York");
71 assertTrue("Incorrect calendar constructed 4", gc.getTimeZone().equals( in test_ConstructorIII()
94 assertTrue("Incorrect calendar constructed", gc.getTimeZone().equals( in test_ConstructorIIIII()
125 assertTrue("Incorrect calendar constructed", gc.getTimeZone().equals( in test_ConstructorIIIIII()
166 Calendar c1 = new GregorianCalendar(TimeZone.getTimeZone("GMT")); in test_ConstructorLjava_util_TimeZone()
344 TimeZone tz = TimeZone.getTimeZone(ids[i]); in test_getActualMaximumI()
683 .getTimeZone("Europe/London"), new Locale("en", "GB")); in test_getMinimalDaysInFirstWeek()
687 g = new GregorianCalendar(TimeZone.getTimeZone("Europe/London"), in test_getMinimalDaysInFirstWeek()
692 g = new GregorianCalendar(TimeZone.getTimeZone("Europe/London"), in test_getMinimalDaysInFirstWeek()
[all …]
DDateTest.java317 cal.setTimeZone(TimeZone.getTimeZone("GMT")); in test_parseLjava_lang_String()
322 cal.setTimeZone(TimeZone.getTimeZone("MST")); in test_parseLjava_lang_String()
327 cal.setTimeZone(TimeZone.getTimeZone("GMT")); in test_parseLjava_lang_String()
457 TimeZone.setDefault(TimeZone.getTimeZone("GMT-5")); in test_toString()
467 TimeZone.setDefault(TimeZone.getTimeZone("MST")); in test_toString()
492 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in test_toLocaleString()
/libcore/luni/src/test/java/libcore/java/util/
DTimeZoneTest.java32 TimeZone asiaTaipei = TimeZone.getTimeZone("Asia/Taipei"); in test_useDaylightTime_Taiwan()
38 TimeZone atlanticReykjavik = TimeZone.getTimeZone("Atlantic/Reykjavik"); in test_useDaylightTime_Iceland()
64 TimeZone tz = TimeZone.getTimeZone("CET"); in testPreHistoricInDaylightTime()
86 TimeZone tz = TimeZone.getTimeZone("America/Los_Angeles"); in testPreHistoricInDaylightTime_old()
102 TimeZone iranTz = TimeZone.getTimeZone("Asia/Tehran"); in testGetDisplayNameShort_nonHourOffsets()
118 TimeZone tz = TimeZone.getTimeZone("Africa/Bissau"); in testPreHistoricOffsets()
151 TimeZone tz = TimeZone.getTimeZone(id); in testMinimalTransitionZones()
165 TimeZone timeZone = TimeZone.getTimeZone("Europe/Helsinki"); in testHelsinkiOverflow()
174 TimeZone denver = TimeZone.getTimeZone("America/Denver"); in testHasSameRules()
175 TimeZone phoenix = TimeZone.getTimeZone("America/Phoenix"); in testHasSameRules()
[all …]
DOldTimeZoneTest.java70 assertNotNull(TimeZone.getTimeZone(str[i])); in test_getAvailableIDs()
79 assertNotNull(TimeZone.getTimeZone(str[i])); in test_getAvailableIDsI()
85 TimeZone tz = TimeZone.getTimeZone("GMT-6"); in test_getDisplayName()
87 tz = TimeZone.getTimeZone("America/Los_Angeles"); in test_getDisplayName()
92 TimeZone tz = TimeZone.getTimeZone("America/Los_Angeles"); in test_getDisplayNameLjava_util_Locale()
99 TimeZone tz = TimeZone.getTimeZone("America/Los_Angeles"); in test_getDisplayNameZI()
106 TimeZone tz = TimeZone.getTimeZone("America/Los_Angeles"); in test_getDisplayNameZILjava_util_Locale()
127 TimeZone tz = TimeZone.getTimeZone("GMT-6"); in test_getID()
129 tz = TimeZone.getTimeZone("America/Denver"); in test_getID()
134 TimeZone tz1 = TimeZone.getTimeZone("America/Denver"); in test_hasSameRulesLjava_util_TimeZone()
[all …]
DOldGregorianCalendarTest.java33 GregorianCalendar gc1 = new GregorianCalendar(TimeZone.getTimeZone("GMT+1"), Locale.FRANCE); in testGetHour()
35 GregorianCalendar gc2 = new GregorianCalendar(TimeZone.getTimeZone("GMT+2"), Locale.US); in testGetHour()
42 GregorianCalendar g1 = new GregorianCalendar(TimeZone.getTimeZone("Europe/Moscow")); in test_computeTime()
56 TimeZone.getTimeZone("Europe/London"), in test_computeFields()
70 TimeZone.getTimeZone("Europe/London"), in test_hashCode()
76 TimeZone.getTimeZone("Europe/Moscow")); in test_hashCode()
84 TimeZone.getTimeZone("Europe/London"), in test_setFirstDayOfWeekI()
98 TimeZone.getTimeZone("Europe/London"), in test_setMinimalDaysInFirstWeekI()
DCalendarTest.java31 private static final TimeZone AMERICA_SAO_PAULO = TimeZone.getTimeZone("America/Sao_Paulo");
34 private static final TimeZone AUSTRALIA_LORD_HOWE = TimeZone.getTimeZone("Australia/Lord_Howe");
41 private static final TimeZone ASIA_KUALA_LUMPUR = TimeZone.getTimeZone("Asia/Kuala_Lumpur");
43 private static final TimeZone ASIA_SEOUL = TimeZone.getTimeZone("Asia/Seoul");
49 Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("UTC"), Locale.US); in test_setTimeZone()
51 TimeZone tz = TimeZone.getTimeZone("GMT+7"); in test_setTimeZone()
164 TimeZone timeZone = TimeZone.getTimeZone("Europe/Paris"); in testToInstant()
205 calendar.setTimeZone(TimeZone.getTimeZone("GMT-08:00")); in testCalendarSerialization()
229 GregorianCalendar cal = new GregorianCalendar(TimeZone.getTimeZone("America/Los_Angeles")); in test_clear_45877_morning()
237 GregorianCalendar cal = new GregorianCalendar(TimeZone.getTimeZone("America/Los_Angeles")); in test_clear_45877_afternoon()
[all …]
DGregorianCalendarTest.java33 private static final TimeZone LOS_ANGELES = TimeZone.getTimeZone("America/Los_Angeles");
35 private static final TimeZone LONDON = TimeZone.getTimeZone("Europe/London");
162 TimeZone timeZone = TimeZone.getTimeZone("America/Los_Angeles"); in test_computeTime_enteringDst_TimeZone_LosAngeles_2014()
175 TimeZone timeZone = TimeZone.getTimeZone("America/Los_Angeles"); in test_computeTime_enteringDst_DelegatingTimeZone_LosAngeles_2014()
194 TimeZone zoneInfo = TimeZone.getTimeZone("America/Los_Angeles"); in test_computeTime_enteringDst()
293 TimeZone timeZone = TimeZone.getTimeZone("Europe/Paris"); in test_fromZonedDateTime()
294 assertEquals(timeZone, calendar.getTimeZone()); in test_fromZonedDateTime()
300 assertEquals(3600 * 1000, calendar.getTimeZone().getRawOffset()); // in milliseconds in test_fromZonedDateTime()
319 TimeZone timeZone = TimeZone.getTimeZone("Europe/Paris"); in test_toZonedDateTime()
399 TimeZone timeZone = cal.getTimeZone(); in checkOutsideDst()
[all …]
DDateTest.java31 TimeZone.setDefault(TimeZone.getTimeZone("America/Chicago")); in test_toString_us()
40 TimeZone.setDefault(TimeZone.getTimeZone("America/Chicago")); in test_toString_nonUs()
46 TimeZone.setDefault(TimeZone.getTimeZone("America/Los_Angeles")); in test_toGMTString_us()
69 TimeZone.setDefault(TimeZone.getTimeZone("America/Los_Angeles")); in test_toGMTString_nonUs()
DSimpleTimeZoneTest.java41 private static final TimeZone UTC = TimeZone.getTimeZone("UTC");
48 TimeZone timeZone = TimeZone.getTimeZone("Europe/Paris"); in testStandardParis2014()
107 TimeZone timeZone = TimeZone.getTimeZone("America/New_York"); in testStandardNewYork2014()
248 format.setTimeZone(cal.getTimeZone()); in formatCalendar()
DFormatterTest.java48 Calendar c = Calendar.getInstance(TimeZone.getTimeZone("GMT-08:00")); in test_numberLocalization()
182 TimeZone utc = TimeZone.getTimeZone("UTC"); in checkFormat()
/libcore/benchmarks/src/benchmarks/regression/
DTimeZoneBenchmark.java30 TimeZone.getTimeZone("UTC"); in timeTimeZone_getTimeZoneUTC()
37 TimeZone.getTimeZone(defaultId); in timeTimeZone_getTimeZone_default()
44 TimeZone.getTimeZone("America/Caracas"); in timeTimeZone_getTimeZone_America_Caracas()
51 TimeZone.getTimeZone("America/Santiago"); in timeTimeZone_getTimeZone_America_Santiago()
57 TimeZone.getTimeZone("GMT+10"); in timeTimeZone_getTimeZone_GMT_plus_10()
/libcore/luni/src/test/java/libcore/java/text/
DSimpleDateFormatTest.java32 private static final TimeZone AMERICA_LOS_ANGELES = TimeZone.getTimeZone("America/Los_Angeles");
33 private static final TimeZone AUSTRALIA_LORD_HOWE = TimeZone.getTimeZone("Australia/Lord_Howe");
34 private static final TimeZone UTC = TimeZone.getTimeZone("Etc/UTC");
286 TimeZone europeBerlin = TimeZone.getTimeZone("Europe/Berlin"); in testFormattingUncommonTimeZoneAbbreviations()
287 TimeZone europeZurich = TimeZone.getTimeZone("Europe/Zurich"); in testFormattingUncommonTimeZoneAbbreviations()
309 TimeZone americaChicago = TimeZone.getTimeZone("America/Chicago"); in testTimeZoneFormatting()
312 assertEquals(americaChicago, sdf.getTimeZone()); in testTimeZoneFormatting()
324 assertEquals(americaChicago, sdf.getTimeZone()); in testTimeZoneFormatting()
328 assertEquals(americaChicago, sdf.getTimeZone()); in testTimeZoneFormatting()
341 assertEquals(UTC, sdf.getTimeZone()); in testTimeZoneFormatting()
[all …]
/libcore/luni/src/test/java/libcore/libcore/icu/
DDateIntervalFormatTest.java39 TimeZone tz = TimeZone.getTimeZone("America/Los_Angeles"); in test_formatDateInterval()
177 TimeZone tz = TimeZone.getTimeZone("America/Los_Angeles"); in test8862241()
191 TimeZone utc = TimeZone.getTimeZone("UTC"); in test10089890()
192 TimeZone pacific = TimeZone.getTimeZone("America/Los_Angeles"); in test10089890()
213 TimeZone utc = TimeZone.getTimeZone("UTC"); in test10318326()
240 TimeZone utc = TimeZone.getTimeZone("UTC"); in test10560853_when_time_not_displayed()
264 TimeZone utc = TimeZone.getTimeZone("UTC"); in test10560853_for_single_day_events()
276 TimeZone utc = TimeZone.getTimeZone("UTC"); in test_single_day_events_later_than_epoch()
294 TimeZone pacific = TimeZone.getTimeZone("America/Los_Angeles"); in test_single_day_events_not_in_UTC()
315 TimeZone utc = TimeZone.getTimeZone("UTC"); in test10209343_when_not_this_year()
[all …]
DTimeZoneIntegrationTest.java66 java.util.TimeZone tz = java.util.TimeZone.getTimeZone("GMT-05:00"); in testJavaSetDefaultAppliesToIcuTimezone()
85 java.util.TimeZone otherTimeZone = java.util.TimeZone.getTimeZone("Europe/London"); in testSetDefaultDeadlock()
385 android.icu.util.TimeZone.getTimeZone(zoneInfoDbId); in testTimeZoneIdLookup()
406 java.util.TimeZone tz = java.util.TimeZone.getTimeZone("Europe/London"); in testDisplayNamesWithScript()
420 android.icu.util.TimeZone utz = android.icu.util.TimeZone.getTimeZone(tz.getID()); in testDisplayNamesWithScript()
473 java.util.TimeZone timeZone = java.util.TimeZone.getTimeZone(timeZoneId); in testDstMeansSummer()
493 android.icu.util.TimeZone timeZone = android.icu.util.TimeZone.getTimeZone(timeZoneId); in testDstMeansSummer()
DRelativeDateTimeFormatterTest.java44 TimeZone tz = TimeZone.getTimeZone("GMT"); in test_getRelativeTimeSpanStringCTS()
100 TimeZone tz = TimeZone.getTimeZone("America/Los_Angeles"); in test_getRelativeTimeSpanString_helper()
357 TimeZone tz = TimeZone.getTimeZone("Europe/Berlin"); in test_getRelativeTimeSpanStringGerman()
385 TimeZone tz = TimeZone.getTimeZone("Europe/Paris"); in test_getRelativeTimeSpanStringFrench()
425 TimeZone tz = TimeZone.getTimeZone("America/Los_Angeles"); in test_getRelativeDateTimeString()
469 TimeZone tz = TimeZone.getTimeZone("America/Los_Angeles"); in test_getRelativeDateTimeStringDST()
514 TimeZone tz = TimeZone.getTimeZone("Europe/Rome"); in test_getRelativeDateTimeStringItalian()
543 TimeZone tz = TimeZone.getTimeZone("America/Los_Angeles"); in test5252772()
618 TimeZone tz = TimeZone.getTimeZone("America/Los_Angeles"); in test_bug19822016()
693 final TimeZone tz = TimeZone.getTimeZone("GMT"); in test_bug25883157()
/libcore/luni/src/test/java/libcore/java/sql/
DTimestampTest.java30 TimeZone.setDefault(TimeZone.getTimeZone("UTC")); in testToString()
52 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testValueOf()
/libcore/ojluni/src/main/java/java/text/
DDateFormat.java702 public TimeZone getTimeZone() in getTimeZone() method in DateFormat
704 return calendar.getTimeZone(); in getTimeZone()
764 calendar.getTimeZone().equals(other.calendar.getTimeZone()) && in equals()
/libcore/ojluni/src/main/java/java/util/
DTimeZone.java561 public static synchronized TimeZone getTimeZone(String id) { in getTimeZone() method in TimeZone
601 public static TimeZone getTimeZone(ZoneId zoneId) { in getTimeZone() method in TimeZone
609 return getTimeZone(tzid); in getTimeZone()
724 defaultTimeZone = TimeZone.getTimeZone(zoneName); in getDefaultRef()
/libcore/ojluni/src/test/java/time/test/java/time/chrono/
DTestJapaneseChronoImpl.java110 cal.setTimeZone(TimeZone.getTimeZone("GMT+00")); in test_JapaneseChrono_vsCalendar()
137 cal.setTimeZone(TimeZone.getTimeZone("GMT+00")); in test_dayOfYearVsCalendar()
DTestIsoChronoImpl.java99 cal.setTimeZone(TimeZone.getTimeZone("GMT+00")); in test_IsoChrono_vsCalendar()
130 cal.setTimeZone(TimeZone.getTimeZone("GMT+00")); in test_DayOfWeek_IsoChronology_vsCalendar()
/libcore/luni/src/main/java/libcore/net/http/
DHttpDate.java40 rfc1123.setTimeZone(TimeZone.getTimeZone("UTC"));
/libcore/luni/src/main/java/libcore/icu/
DDateTimeFormat.java46 String key = skeleton + "\t" + icuLocale + "\t" + time.getTimeZone(); in format()
/libcore/luni/src/test/java/libcore/libcore/timezone/
DCountryTimeZonesTest.java44 private static final TimeZone NEW_YORK_TZ = TimeZone.getTimeZone("America/New_York");
45 private static final TimeZone LONDON_TZ = TimeZone.getTimeZone("Europe/London");
47 private static final TimeZone REYKJAVIK_TZ = TimeZone.getTimeZone("Atlantic/Reykjavik");
50 private static final TimeZone UTC_TZ = TimeZone.getTimeZone("Etc/UTC");
717 return TimeZone.getTimeZone(id); in zone()
731 return Arrays.stream(ids).map(TimeZone::getTimeZone).collect(Collectors.toList()); in zones()

123