Home
last modified time | relevance | path

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

12345

/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/serializable/
DCalendarTests.java42 TimeZone pst = TimeZone.getTimeZone("America/Los_Angeles"); in getTestObjects()
73 TimeZone tst = TimeZone.getTimeZone("Asia/Bangkok"); in getTestObjects()
89 TimeZone cst = TimeZone.getTimeZone("Asia/Shanghai"); in getTestObjects()
105 TimeZone ast = TimeZone.getTimeZone("Europe/Athens"); in getTestObjects()
121 TimeZone kst = TimeZone.getTimeZone("Asia/Seoul"); in getTestObjects()
137 TimeZone ast = TimeZone.getTimeZone("Africa/Addis_Ababa"); in getTestObjects()
153 TimeZone pst = TimeZone.getTimeZone("America/Los_Angeles"); in getTestObjects()
169 TimeZone jst = TimeZone.getTimeZone("Asia/Jerusalem"); in getTestObjects()
185 TimeZone jst = TimeZone.getTimeZone("Asia/Calcutta"); in getTestObjects()
200 TimeZone cst = TimeZone.getTimeZone("Africa/Cairo"); in getTestObjects()
[all …]
/external/apache-harmony/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/
DTimestampTest.java200 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testSetTimelong()
218 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testGetTime()
256 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testGetDate()
269 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testGetHours()
282 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testGetMinutes()
295 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testGetSeconds()
309 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testValueOfString()
341 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testValueOfString1()
412 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testToString()
428 TimeZone.setDefault(TimeZone.getTimeZone(timeZone)); in testToString()
[all …]
DTimeTest.java100 TimeZone.setDefault(TimeZone.getTimeZone(timeZone)); in testToString()
116 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testValueOfString()
141 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testSetTime()
DDateTest.java32 static Calendar aCal = Calendar.getInstance(TimeZone.getTimeZone("GMT"));
245 TimeZone.setDefault(TimeZone.getTimeZone(timeZone)); in testToString()
277 TimeZone.setDefault(TimeZone.getTimeZone(timeZoneName)); in testSetTimelong()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/
DTimeZoneTest.java190 … ZoneDescriptor currentZone = new ZoneDescriptor(TimeZone.getTimeZone(referenceZone.getID())); in TestShortZoneIDs()
297 TimeZone zone = TimeZone.getTimeZone(id); in TestCustomParse()
328 TimeZone zone = TimeZone.getTimeZone("PST"); in TestDisplayName()
462 TimeZone tz = TimeZone.getTimeZone(timezones[i]); in TestDisplayName2()
667 TimeZone tz = TimeZone.getTimeZone( "PRT" ); in TestPRTOffset()
682 TimeZone time_zone = TimeZone.getTimeZone("PST"); in TestVariousAPI518()
731 TimeZone tz = TimeZone.getTimeZone("PST"); in TestGetAvailableIDs913()
737 tz = TimeZone.getTimeZone("America/Los_Angeles"); in TestGetAvailableIDs913()
744 tz = TimeZone.getTimeZone("NON_EXISTENT"); in TestGetAvailableIDs913()
829 TimeZone tz = TimeZone.getTimeZone(id); in TestGetAvailableIDsNew()
[all …]
DTimeZoneRegression.java58 TimeZone z1 = TimeZone.getTimeZone("PST"); in Test4073209()
59 TimeZone z2 = TimeZone.getTimeZone("PST"); in Test4073209()
102 TimeZone tz = TimeZone.getTimeZone("PST"); in Test4084933()
143 TimeZone zone = TimeZone.getTimeZone(ZONES[i]); in Test4096952()
180 TimeZone PST = TimeZone.getTimeZone("PST"); in Test4109314()
305 TimeZone tz = TimeZone.getTimeZone("PST"); in Test4126678()
367 TimeZone tz = TimeZone.getTimeZone("GMT"); in Test4151429()
619 z = TimeZone.getTimeZone(null); in Test4159922()
624 z = TimeZone.getTimeZone("GMT"); in Test4159922()
793 TimeZone pst = TimeZone.getTimeZone("PST"); in Test4173604()
[all …]
DTimeZoneRuleTest.java211 TimeZone ny = TimeZone.getTimeZone("America/New_York", TimeZone.TIMEZONE_ICU); in TestHistoricalRuleBasedTimeZone()
324 TimeZone tz = TimeZone.getTimeZone(zids[i], TimeZone.TIMEZONE_ICU); in TestOlsonTransition()
353 TimeZone tz = TimeZone.getTimeZone(zids[i], TimeZone.TIMEZONE_ICU); in TestRBTZTransition()
388 TimeZone newyork = TimeZone.getTimeZone("America/New_York", TimeZone.TIMEZONE_ICU); in TestHasEquivalentTransitions()
389 …TimeZone indianapolis = TimeZone.getTimeZone("America/Indiana/Indianapolis", TimeZone.TIMEZONE_ICU… in TestHasEquivalentTransitions()
390 TimeZone gmt_5 = TimeZone.getTimeZone("Etc/GMT+5", TimeZone.TIMEZONE_ICU); in TestHasEquivalentTransitions()
423 TimeZone losangeles = TimeZone.getTimeZone("America/Los_Angeles", TimeZone.TIMEZONE_ICU); in TestHasEquivalentTransitions()
439 … BasicTimeZone olsontz = (BasicTimeZone)TimeZone.getTimeZone(tzids[i], TimeZone.TIMEZONE_ICU); in TestVTimeZoneRoundTrip()
518 … BasicTimeZone olsontz = (BasicTimeZone)TimeZone.getTimeZone(tzids[i], TimeZone.TIMEZONE_ICU); in TestVTimeZoneRoundTripPartial()
703 … BasicTimeZone tz = (BasicTimeZone)TimeZone.getTimeZone(tzids[i], TimeZone.TIMEZONE_ICU); in TestGetSimpleRules()
[all …]
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/
DXMPDateTimeImpl.java44 private TimeZone timeZone = TimeZone.getTimeZone("UTC");
70 TimeZone zone = calendar.getTimeZone(); in XMPDateTimeImpl()
87 this.timeZone = intCalendar.getTimeZone(); in XMPDateTimeImpl()
296 public TimeZone getTimeZone() in getTimeZone() method in XMPDateTimeImpl
DISO8601Converter.java337 (dateTime.getTimeZone() != null && dateTime.getTimeZone().getRawOffset() != 0)) in render()
356 if (dateTime.getTimeZone() != null) in render()
360 int offset = dateTime.getTimeZone().getOffset(timeInMillis); in render()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
DCalendarRegression.java79 TimeZone zone = TimeZone.getTimeZone(ids[i]); in Test4031502()
103 …l.GregorianCalendar cal2 = new java.util.GregorianCalendar(java.util.TimeZone.getTimeZone(ids[i])); in Test4031502()
252 java.util.TimeZone javazone = java.util.TimeZone.getTimeZone("GMT"); in Test4059654()
253 TimeZone icuzone = TimeZone.getTimeZone("GMT"); in Test4059654()
280 Calendar cal = GregorianCalendar.getInstance(TimeZone.getTimeZone("GMT"), in Test4061476()
365 java.util.TimeZone javazone = java.util.TimeZone.getTimeZone("GMT"); in Test4071385()
366 TimeZone icuzone = TimeZone.getTimeZone("GMT"); in Test4071385()
395 TimeZone.setDefault(TimeZone.getTimeZone("UTC")); in Test4083167()
429 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in Test4086724()
487 TimeZone GMT = TimeZone.getTimeZone("GMT"); in Test4096231()
[all …]
DCompatibilityTest.java44 java.util.TimeZone jdkGMT = java.util.TimeZone.getTimeZone("GMT"); in TestGregorianChangeover()
71 TimeZone gmt = TimeZone.getTimeZone("GMT"); in TestGregorianChangeover()
117 new GregorianCalendar(TimeZone.getTimeZone("UTC")); in TestMapping()
163 TimeZone.setDefault(TimeZone.getTimeZone("UTC")); in TestMapping()
277 if (!zone.equals(cal.getTimeZone())) errln("FAIL: Calendar.getTimeZone failed"); in TestGenericAPI()
279 Calendar cal2 = Calendar.getInstance(cal.getTimeZone()); in TestGenericAPI()
651 gmtcal.setTimeZone(TimeZone.getTimeZone("Africa/Casablanca")); in aux4064654()
659 cal.setTimeZone(TimeZone.getTimeZone("America/Los_Angels")); in aux4064654()
662 int offset = cal.getTimeZone().getOffset(cal.get(Calendar.ERA), in aux4064654()
786 cal = Calendar.getInstance(TimeZone.getTimeZone(zoneName), Locale.ENGLISH); in TestAddAcrossOffsetTransitions()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DTimeZone.java702 public static TimeZone getTimeZone(String ID) { in getTimeZone() method in TimeZone
703 return getTimeZone(ID, TZ_IMPL, false); in getTimeZone()
722 return getTimeZone(ID, TZ_IMPL, true); in getFrozenTimeZone()
737 public static TimeZone getTimeZone(String ID, int type) { in getTimeZone() method in TimeZone
738 return getTimeZone(ID, type, false); in getTimeZone()
749 private static TimeZone getTimeZone(String ID, int type, boolean frozen) { in getTimeZone() method in TimeZone
967 jdkZone = java.util.TimeZone.getTimeZone(icuID); in setDefault()
975 jdkZone = java.util.TimeZone.getTimeZone(icuID); in setDefault()
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/format/
DGlobalizationPreferencesTest.java693 TimeZone tz = gp.getTimeZone(); in TestTimeZone()
702 tz = gp.getTimeZone(); in TestTimeZone()
711 tz = gp.getTimeZone(); in TestTimeZone()
719 tz = gp.getTimeZone(); in TestTimeZone()
726 TimeZone jst = TimeZone.getTimeZone("Asia/Tokyo"); in TestTimeZone()
730 tz = gp.getTimeZone(); in TestTimeZone()
738 TimeZone cst = TimeZone.getTimeZone("Europe/Paris"); in TestTimeZone()
754 tz = gp1.getTimeZone(); in TestTimeZone()
762 tz = gp1.getTimeZone(); in TestTimeZone()
1290 TimeZone tz = TimeZone.getTimeZone("America/Sao_Paulo"); in TestDateFormat()
[all …]
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowTime.java193 tz = TimeZone.getTimeZone("UTC"); in parse()
195 tz = TimeZone.getTimeZone(time.timezone); in parse()
217 strftime.setTimeZone(TimeZone.getTimeZone(time.timezone)); in format()
259 Calendar c = Calendar.getInstance(TimeZone.getTimeZone(time.timezone)); in getCalendar()
384 public TimeZone getTimeZone() { in getTimeZone() method in ShadowTime.Strftime
385 return simpleDateFormat.getTimeZone(); in getTimeZone()
/external/ksoap2/kobjects/org/ksoap2/kobjects/isodate/
DIsoDate.java39 c.setTimeZone(TimeZone.getTimeZone("GMT")); in dateToString()
136 TimeZone.getTimeZone( in stringToDate()
140 c.setTimeZone(TimeZone.getTimeZone("GMT")); in stringToDate()
/external/jetty/src/java/org/eclipse/jetty/util/
DDateCache.java137 public TimeZone getTimeZone() in getTimeZone() method in DateCache
139 return _tzFormat.getTimeZone(); in getTimeZone()
149 setTimeZone(TimeZone.getTimeZone(timeZoneId)); in setTimeZoneID()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DTimeZoneFormatTest.java97 Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("UTC")); in TestTimeZoneRoundTrip()
146 TimeZone tz = TimeZone.getTimeZone(tzids[tzidx]); in TestTimeZoneRoundTrip()
167 TimeZone outtz = outcal.getTimeZone(); in TestTimeZoneRoundTrip()
305 Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("UTC")); in TestTimeRoundTrip()
356 sdfGMT.setTimeZone(TimeZone.getTimeZone("Etc/GMT")); in TestTimeRoundTrip()
410 … BasicTimeZone btz = (BasicTimeZone)TimeZone.getTimeZone(id, TimeZone.TIMEZONE_ICU); in TestTimeRoundTrip()
411 TimeZone tz = TimeZone.getTimeZone(id); in TestTimeRoundTrip()
794 TimeZone outtz = outcal.getTimeZone(); in TestISOFormat()
878 TimeZone tz = TimeZone.getTimeZone((String)testCase[1]); in TestFormat()
973 TimeZone tz = TimeZone.getTimeZone((String)testCase[1]); in TestFormatTZDBNames()
DIntlTestDateFormatAPI.java208 final TimeZone tz = def.getTimeZone(); in TestAPI()
212 if( ! de.getTimeZone().equals(it.getTimeZone())) { in TestAPI()
DDateFormatRegressionTestJ.java227 if (sdf.getTimeZone().useDaylightTime()) { in Test4468663()
251 TimeZone PST = TimeZone.getTimeZone("PST"); in run()
277 TimeZone tz = TimeZone.getTimeZone("PST"); in run()
DDateTimeGeneratorTest.java58 TimeZone zone = TimeZone.getTimeZone("Europe/Paris"); in TestSimple()
90 TimeZone enZone = TimeZone.getTimeZone("Etc/GMT"); in TestSimple()
136 TimeZone rootZone = TimeZone.getTimeZone("Etc/GMT"); in TestEmpty()
513 TimeZone testTimeZone = TimeZone.getTimeZone("America/New_York"); in TestReplacingZoneString()
553 } else if (!calendar.getTimeZone().getID().equals(testTimeZone.getID())) { in TestReplacingZoneString()
554 … + "\",\t\"" + newPattern + "\",\t\"" + formatted + "\",\t" + calendar.getTimeZone().getID() + " !… in TestReplacingZoneString()
658 sampleCalendar = new GregorianCalendar(TimeZone.getTimeZone("America/Los_Angeles"));
663 private TimeZone gmt = TimeZone.getTimeZone("Etc/GMT");
/external/icu/icu4c/source/test/intltest/
Ddtfmtrtts.cpp391 fmt->getTimeZone().getOffset(d[0], FALSE, startRaw, startDst, status); in test()
411 …else if((in0=fmt->getTimeZone().inDaylightTime(d[0], status)) && ! failure(status, "gettingDayligh… in test()
416 … fmt->getTimeZone().inDaylightTime(d[1], status) && !failure(status, "gettingDaylightTime")) in test()
426 && (fmt->getTimeZone().inDaylightTime(d[0], status) in test()
427 == fmt->getTimeZone().inDaylightTime(d[dmatch], status) in test()
Ddtfmapts.cpp243 const TimeZone& tz = def->getTimeZone(); in testAPI()
247 if( de->getTimeZone() != it->getTimeZone()) { in testAPI()
/external/apache-http/src/org/apache/http/impl/cookie/
DDateUtils.java83 public static final TimeZone GMT = TimeZone.getTimeZone("GMT");
257 format.setTimeZone(TimeZone.getTimeZone("GMT")); in formatFor()
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/
DXMPDateTime.java86 TimeZone getTimeZone(); in getTimeZone() method
/external/apache-http/src/org/apache/http/protocol/
DHttpDateGenerator.java62 public static final TimeZone GMT = TimeZone.getTimeZone("GMT");

12345