/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/ |
D | HttpDateTest.java | 47 assertEquals(0L, HttpDate.parse("Thu, 01 Jan 1970 00:00:00 GMT").getTime()); in parseStandardFormats() 48 assertEquals(1402057830000L, HttpDate.parse("Fri, 06 Jun 2014 12:30:30 GMT").getTime()); in parseStandardFormats() 51 assertEquals(0L, HttpDate.parse("Thursday, 01-Jan-70 00:00:00 GMT").getTime()); in parseStandardFormats() 52 assertEquals(1402057830000L, HttpDate.parse("Friday, 06-Jun-14 12:30:30 GMT").getTime()); in parseStandardFormats() 55 assertEquals(0L, HttpDate.parse("Thu Jan 1 00:00:00 1970").getTime()); in parseStandardFormats() 56 assertEquals(1402057830000L, HttpDate.parse("Fri Jun 6 12:30:30 2014").getTime()); in parseStandardFormats() 66 assertEquals(3600000L, HttpDate.parse("Thu, 01 Jan 1970 00:00:00 GMT-01:00").getTime()); in parseNonStandardStrings() 67 assertEquals(28800000L, HttpDate.parse("Thu, 01 Jan 1970 00:00:00 PST").getTime()); in parseNonStandardStrings() 69 assertEquals(0L, HttpDate.parse("Thu, 01 Jan 1970 00:00:00 GMT JUNK").getTime()); in parseNonStandardStrings() 80 assertEquals(3600000L, HttpDate.parse("Thursday, 01-Jan-1970 00:00:00 GMT-01:00").getTime()); in parseNonStandardStrings() [all …]
|
/external/icu/android_icu4j/src/samples/java/android/icu/samples/text/dateintervalformat/ |
D | DateIntervalFormatSample.java | 43 new GregorianCalendar(2007,10,10,10,10,10).getTime(), in dtitvfmtPreDefined() 44 new GregorianCalendar(2008,10,10,10,10,10).getTime(), in dtitvfmtPreDefined() 45 new GregorianCalendar(2008,11,10,10,10,10).getTime(), in dtitvfmtPreDefined() 46 new GregorianCalendar(2008,11,10,15,10,10).getTime(), in dtitvfmtPreDefined() 49 new DateInterval(date[0].getTime(),date[1].getTime()), in dtitvfmtPreDefined() 50 new DateInterval(date[1].getTime(),date[2].getTime()), in dtitvfmtPreDefined() 51 new DateInterval(date[2].getTime(),date[3].getTime()), in dtitvfmtPreDefined() 86 new GregorianCalendar(2007,9,10,10,10,10).getTime(), in dtitvfmtCustomized() 87 new GregorianCalendar(2007,10,10,10,10,10).getTime(), in dtitvfmtCustomized() 88 new GregorianCalendar(2007,10,10,22,10,10).getTime(), in dtitvfmtCustomized() [all …]
|
/external/icu/icu4j/samples/src/com/ibm/icu/samples/text/dateintervalformat/ |
D | DateIntervalFormatSample.java | 42 new GregorianCalendar(2007,10,10,10,10,10).getTime(), in dtitvfmtPreDefined() 43 new GregorianCalendar(2008,10,10,10,10,10).getTime(), in dtitvfmtPreDefined() 44 new GregorianCalendar(2008,11,10,10,10,10).getTime(), in dtitvfmtPreDefined() 45 new GregorianCalendar(2008,11,10,15,10,10).getTime(), in dtitvfmtPreDefined() 48 new DateInterval(date[0].getTime(),date[1].getTime()), in dtitvfmtPreDefined() 49 new DateInterval(date[1].getTime(),date[2].getTime()), in dtitvfmtPreDefined() 50 new DateInterval(date[2].getTime(),date[3].getTime()), in dtitvfmtPreDefined() 85 new GregorianCalendar(2007,9,10,10,10,10).getTime(), in dtitvfmtCustomized() 86 new GregorianCalendar(2007,10,10,10,10,10).getTime(), in dtitvfmtCustomized() 87 new GregorianCalendar(2007,10,10,22,10,10).getTime(), in dtitvfmtCustomized() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/ |
D | CalendarRegressionTest.java | 112 logln("ms = " + cal.getTime() + " (" + cal.getTime().getTime() + ")"); in Test4031502() 124 logln("ms = " + cal2.getTime() + " (" + cal2.getTime().getTime() + ")"); in Test4031502() 204 cal.getTime(); in Test4051765() 280 Date cd = gc.getTime(); in Test4059654() 284 Date exp = cal.getTime(); in Test4059654() 320 Date d = getAssociatedDate(tempcal.getTime()); in Test4070502() 351 return cal.getTime(); in getAssociatedDate() 370 logln(cal.getTime().toString()); in dowTest() 391 cal.setTime(tempcal.getTime()); in Test4071385() 393 logln(cal.getTime().toString()); in Test4071385() [all …]
|
D | CompatibilityTest.java | 65 long a = jdkCal.getTime().getTime(); in TestGregorianChangeover() 66 Date c = jdkCal.getTime(); in TestGregorianChangeover() 68 long b = c.getTime(); in TestGregorianChangeover() 75 Date co = jdkCal.getTime(); in TestGregorianChangeover() 76 logln("Change over (Oct 15 1582) = " + co + " (" + co.getTime() + ")"); in TestGregorianChangeover() 103 Date d = new Date(co.getTime() + i*ONE_DAY); in TestGregorianChangeover() 159 lim[sign] = fmt.format(cal.getTime()); in TestMapping() 205 long calMillis = cal.getTime().getTime(); in TestMapping() 226 calMillis = cal.getTime().getTime(); in TestMapping() 244 cal.setGregorianChange(tempcal.getTime()); in TestMapping() [all …]
|
D | AstroTest.java | 53 astro.setDate(gc.getTime()); in TestSolarLongitude() 106 astro.setDate(gc.getTime()); in TestLunarPosition() 144 Date then = cal.getTime(); in TestCoverage() 169 logln(" time: " + astro.getTime()); in TestCoverage() 263 astro.setDate(cal.getTime()); in TestSunriseTimes() 268 cal2.setTime(cal.getTime()); in TestSunriseTimes() 274 Date exprise = cal2.getTime(); in TestSunriseTimes() 277 Date expset = cal2.getTime(); in TestSunriseTimes() 279 int deltarise = Math.abs((int)(sunrise.getTime() - exprise.getTime()) / 1000); in TestSunriseTimes() 280 int deltaset = Math.abs((int)(sunset.getTime() - expset.getTime()) / 1000); in TestSunriseTimes() [all …]
|
D | HolidayTest.java | 44 longTimeAgo = cal.getTime(); in localTestInitialize() 112 first.setTime(first.getTime() + awhile); in exerciseHoliday() 171 c.getTime(); // JDK 1.1.2 bug workaround in exerciseHoliday() 173 Date endOfMonth = c.getTime(); in exerciseHoliday() 206 d.setTime( d.getTime() + 1000 ); // "d++" in exerciseHoliday() 231 return fCalendar.getTime(); in startOfMonth() 305 Date d0 = gcal.getTime(); in TestIsOn() 307 Date d1 = gcal.getTime(); in TestIsOn() 309 Date d2 = gcal.getTime(); in TestIsOn() 311 Date d3 = gcal.getTime(); in TestIsOn() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/ |
D | CalendarRegressionTest.java | 109 logln("ms = " + cal.getTime() + " (" + cal.getTime().getTime() + ")"); in Test4031502() 121 logln("ms = " + cal2.getTime() + " (" + cal2.getTime().getTime() + ")"); in Test4031502() 201 cal.getTime(); in Test4051765() 277 Date cd = gc.getTime(); in Test4059654() 281 Date exp = cal.getTime(); in Test4059654() 317 Date d = getAssociatedDate(tempcal.getTime()); in Test4070502() 348 return cal.getTime(); in getAssociatedDate() 367 logln(cal.getTime().toString()); in dowTest() 388 cal.setTime(tempcal.getTime()); in Test4071385() 390 logln(cal.getTime().toString()); in Test4071385() [all …]
|
D | CompatibilityTest.java | 62 long a = jdkCal.getTime().getTime(); in TestGregorianChangeover() 63 Date c = jdkCal.getTime(); in TestGregorianChangeover() 65 long b = c.getTime(); in TestGregorianChangeover() 72 Date co = jdkCal.getTime(); in TestGregorianChangeover() 73 logln("Change over (Oct 15 1582) = " + co + " (" + co.getTime() + ")"); in TestGregorianChangeover() 100 Date d = new Date(co.getTime() + i*ONE_DAY); in TestGregorianChangeover() 156 lim[sign] = fmt.format(cal.getTime()); in TestMapping() 202 long calMillis = cal.getTime().getTime(); in TestMapping() 223 calMillis = cal.getTime().getTime(); in TestMapping() 241 cal.setGregorianChange(tempcal.getTime()); in TestMapping() [all …]
|
D | AstroTest.java | 50 astro.setDate(gc.getTime()); in TestSolarLongitude() 103 astro.setDate(gc.getTime()); in TestLunarPosition() 141 Date then = cal.getTime(); in TestCoverage() 166 logln(" time: " + astro.getTime()); in TestCoverage() 260 astro.setDate(cal.getTime()); in TestSunriseTimes() 265 cal2.setTime(cal.getTime()); in TestSunriseTimes() 271 Date exprise = cal2.getTime(); in TestSunriseTimes() 274 Date expset = cal2.getTime(); in TestSunriseTimes() 276 int deltarise = Math.abs((int)(sunrise.getTime() - exprise.getTime()) / 1000); in TestSunriseTimes() 277 int deltaset = Math.abs((int)(sunset.getTime() - expset.getTime()) / 1000); in TestSunriseTimes() [all …]
|
D | HolidayTest.java | 41 longTimeAgo = cal.getTime(); in localTestInitialize() 109 first.setTime(first.getTime() + awhile); in exerciseHoliday() 168 c.getTime(); // JDK 1.1.2 bug workaround in exerciseHoliday() 170 Date endOfMonth = c.getTime(); in exerciseHoliday() 203 d.setTime( d.getTime() + 1000 ); // "d++" in exerciseHoliday() 228 return fCalendar.getTime(); in startOfMonth() 302 Date d0 = gcal.getTime(); in TestIsOn() 304 Date d1 = gcal.getTime(); in TestIsOn() 306 Date d2 = gcal.getTime(); in TestIsOn() 308 Date d3 = gcal.getTime(); in TestIsOn() [all …]
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue49/ |
D | CalendarTest.java | 105 assertEquals(TimeZone.getTimeZone("GMT-5:00").getOffset(calendar.getTime().getTime()), in testLoadBean() 106 calendar.getTimeZone().getOffset(calendar.getTime().getTime())); in testLoadBean() 110 assertEquals(date, calendar.getTime()); in testLoadBean() 117 assertEquals(TimeZone.getTimeZone("GMT-5:00").getOffset(calendar.getTime().getTime()), in testLoadWithTag() 118 calendar.getTimeZone().getOffset(calendar.getTime().getTime())); in testLoadWithTag() 121 assertEquals(date, calendar.getTime()); in testLoadWithTag()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/jdk/ |
D | TimestampDeserializationTest.java | 27 …("Date: expect "+value+" ("+value.getTime()+"), got "+result+" ("+result.getTime()+")", value.getT… in testTimestampUtil() 44 …("Date: expect "+value+" ("+value.getTime()+"), got "+result+" ("+result.getTime()+")", value.getT… in testTimestampUtilSingleElementArray()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/timezone/ |
D | TimeZoneBoundaryTest.java | 75 long min = d.getTime(); in findDaylightBoundaryUsingDate() 155 long min = d.getTime(); in findDaylightBoundaryUsingTimeZone() 214 d.getTime(); in showDate() 233 fmt.format(d) + " = " + d.getTime(); in showDate() 249 Date d = cal.getTime(); in verifyDST() 253 d.getTime()/3600000.0 + ")"); in verifyDST() 311 Date d = cal.getTime(); in verifyMapping() 312 double e = d.getTime() / H; in verifyMapping() 424 Date d = tempcal.getTime(); in TestBoundaries() 436 tempcal.setTimeInMillis(d.getTime() + i*60*1000); in TestBoundaries() [all …]
|
D | TimeZoneRuleTest.java | 152 dst = rbtz1.inDaylightTime(cal.getTime()); in TestSimpleRuleBasedTimeZone() 173 dst = rbtz1.inDaylightTime(cal.getTime()); in TestSimpleRuleBasedTimeZone() 499 if (!vtz_new.hasEquivalentTransitions(olsontz, tzt.getTime(), endTime, true)) { in TestVTimeZoneRoundTrip() 501 …if (!hasEquivalentTransitions(vtz_new, olsontz, tzt.getTime() + maxDelta, endTime, true, maxDelta)… in TestVTimeZoneRoundTrip() 507 if (!vtz_new.hasEquivalentTransitions(olsontz, tzt.getTime(), endTime, false)) { in TestVTimeZoneRoundTrip() 560 if (!vtz_new.hasEquivalentTransitions(olsontz, tzt.getTime(), endTime, true)) { in TestVTimeZoneRoundTripPartial() 562 …if (!hasEquivalentTransitions(vtz_new, olsontz, tzt.getTime() + maxDelta, endTime, true, maxDelta)… in TestVTimeZoneRoundTripPartial() 663 + lastmod.getTime() + "/After:" + newvtz1.getLastModified().getTime()); in TestVTimeZoneHeaderProps() 694 + lastmod.getTime() + "/After:" + newvtz2.getLastModified().getTime()); in TestVTimeZoneHeaderProps() 870 d2 = a1.getPreviousStart(d1.getTime(), -3*HOUR, 0, true); in TestTimeZoneRuleCoverage() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/ |
D | TimeZoneBoundaryTest.java | 72 long min = d.getTime(); in findDaylightBoundaryUsingDate() 152 long min = d.getTime(); in findDaylightBoundaryUsingTimeZone() 211 d.getTime(); in showDate() 230 fmt.format(d) + " = " + d.getTime(); in showDate() 246 Date d = cal.getTime(); in verifyDST() 250 d.getTime()/3600000.0 + ")"); in verifyDST() 308 Date d = cal.getTime(); in verifyMapping() 309 double e = d.getTime() / H; in verifyMapping() 421 Date d = tempcal.getTime(); in TestBoundaries() 433 tempcal.setTimeInMillis(d.getTime() + i*60*1000); in TestBoundaries() [all …]
|
D | TimeZoneRuleTest.java | 149 dst = rbtz1.inDaylightTime(cal.getTime()); in TestSimpleRuleBasedTimeZone() 170 dst = rbtz1.inDaylightTime(cal.getTime()); in TestSimpleRuleBasedTimeZone() 496 if (!vtz_new.hasEquivalentTransitions(olsontz, tzt.getTime(), endTime, true)) { in TestVTimeZoneRoundTrip() 498 …if (!hasEquivalentTransitions(vtz_new, olsontz, tzt.getTime() + maxDelta, endTime, true, maxDelta)… in TestVTimeZoneRoundTrip() 504 if (!vtz_new.hasEquivalentTransitions(olsontz, tzt.getTime(), endTime, false)) { in TestVTimeZoneRoundTrip() 557 if (!vtz_new.hasEquivalentTransitions(olsontz, tzt.getTime(), endTime, true)) { in TestVTimeZoneRoundTripPartial() 559 …if (!hasEquivalentTransitions(vtz_new, olsontz, tzt.getTime() + maxDelta, endTime, true, maxDelta)… in TestVTimeZoneRoundTripPartial() 660 + lastmod.getTime() + "/After:" + newvtz1.getLastModified().getTime()); in TestVTimeZoneHeaderProps() 691 + lastmod.getTime() + "/After:" + newvtz2.getLastModified().getTime()); in TestVTimeZoneHeaderProps() 867 d2 = a1.getPreviousStart(d1.getTime(), -3*HOUR, 0, true); in TestTimeZoneRuleCoverage() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
D | BasicTimeZone.java | 142 && tr1.getTime() <= end in hasEquivalentTransitions() 146 tr1 = getNextTransition(tr1.getTime(), false); in hasEquivalentTransitions() 153 && tr2.getTime() <= end in hasEquivalentTransitions() 157 tr2 = ((BasicTimeZone)tz).getNextTransition(tr2.getTime(), false); in hasEquivalentTransitions() 167 if (tr1.getTime() <= end) { in hasEquivalentTransitions() 172 if (tr2.getTime() <= end) { in hasEquivalentTransitions() 183 if (tr1.getTime() != tr2.getTime()) { in hasEquivalentTransitions() 199 time = tr1.getTime(); in hasEquivalentTransitions() 262 time = tzt.getTime(); in getTimeZoneRules() 290 t = tzt.getTime(); in getTimeZoneRules() [all …]
|
D | RuleBasedTimeZone.java | 143 getOffset(date.getTime(), false, offsets); in inDaylightTime() 218 time = tt.getTime(); in observesDaylightTime() 332 long tt = tzt.getTime(); in getNextTransition() 338 tt = tzt.getTime(); in getNextTransition() 350 … tzt = new TimeZoneTransition(start0.getTime(), finalRules[1], finalRules[0]); in getNextTransition() 352 … tzt = new TimeZoneTransition(start1.getTime(), finalRules[0], finalRules[1]); in getNextTransition() 365 tt = tzt.getTime(); in getNextTransition() 384 result = getNextTransition(result.getTime(), false /* always exclusive */); in getNextTransition() 401 long tt = tzt.getTime(); in getPreviousTransition() 409 tt = tzt.getTime(); in getPreviousTransition() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | BasicTimeZone.java | 147 && tr1.getTime() <= end in hasEquivalentTransitions() 151 tr1 = getNextTransition(tr1.getTime(), false); in hasEquivalentTransitions() 158 && tr2.getTime() <= end in hasEquivalentTransitions() 162 tr2 = ((BasicTimeZone)tz).getNextTransition(tr2.getTime(), false); in hasEquivalentTransitions() 172 if (tr1.getTime() <= end) { in hasEquivalentTransitions() 177 if (tr2.getTime() <= end) { in hasEquivalentTransitions() 188 if (tr1.getTime() != tr2.getTime()) { in hasEquivalentTransitions() 204 time = tr1.getTime(); in hasEquivalentTransitions() 271 time = tzt.getTime(); in getTimeZoneRules() 299 t = tzt.getTime(); in getTimeZoneRules() [all …]
|
D | RuleBasedTimeZone.java | 154 getOffset(date.getTime(), false, offsets); in inDaylightTime() 234 time = tt.getTime(); in observesDaylightTime() 354 long tt = tzt.getTime(); in getNextTransition() 360 tt = tzt.getTime(); in getNextTransition() 372 … tzt = new TimeZoneTransition(start0.getTime(), finalRules[1], finalRules[0]); in getNextTransition() 374 … tzt = new TimeZoneTransition(start1.getTime(), finalRules[0], finalRules[1]); in getNextTransition() 387 tt = tzt.getTime(); in getNextTransition() 406 result = getNextTransition(result.getTime(), false /* always exclusive */); in getNextTransition() 425 long tt = tzt.getTime(); in getPreviousTransition() 433 tt = tzt.getTime(); in getPreviousTransition() [all …]
|
/external/icu/icu4c/source/test/intltest/ |
D | astrotst.cpp | 100 astro->setDate(gc->getTime(status)); in TestSolarLongitude() 127 astro->setDate(gc->getTime(status)); in TestLunarPosition() 158 UDate then = cal->getTime(status); in TestCoverage() 186 logln((UnicodeString)" date: " + anAstro->getTime()); in TestCoverage() 298 astro3.setDate(cal.getTime(status)); in TestSunriseTimes() 305 cal2.setTime(cal.getTime(status), status); in TestSunriseTimes() 311 UDate exprise = cal2.getTime(status); in TestSunriseTimes() 314 UDate expset = cal2.getTime(status); in TestSunriseTimes() 327 errln("FAIL: (rise) " + df_d->format(cal.getTime(status),s1) + in TestSunriseTimes() 332 logln(df_d->format(cal.getTime(status),s1) + in TestSunriseTimes() [all …]
|
/external/mockftpserver/MockFtpServer/src/test/java/org/mockftpserver/core/command/ |
D | InvocationRecordTest.java | 55 assertTrue("time", commandInvocation.getTime().getTime() >= beforeTime in testConstructor() 56 && commandInvocation.getTime().getTime() <= afterTime); in testConstructor() 211 Date timestamp = invocationRecord.getTime(); in testGetTime_Immutability() 212 long timeInMillis = timestamp.getTime(); in testGetTime_Immutability() 214 assertEquals("time", timeInMillis, invocationRecord.getTime().getTime()); in testGetTime_Immutability()
|
/external/mockftpserver/tags/2.0.2/src/test/java/org/mockftpserver/core/command/ |
D | InvocationRecordTest.java | 54 assertTrue("time", commandInvocation.getTime().getTime() >= beforeTime in testConstructor() 55 && commandInvocation.getTime().getTime() <= afterTime); in testConstructor() 210 Date timestamp = invocationRecord.getTime(); in testGetTime_Immutability() 211 long timeInMillis = timestamp.getTime(); in testGetTime_Immutability() 213 assertEquals("time", timeInMillis, invocationRecord.getTime().getTime()); in testGetTime_Immutability()
|
/external/mockftpserver/tags/2.5/src/test/java/org/mockftpserver/core/command/ |
D | InvocationRecordTest.java | 55 assertTrue("time", commandInvocation.getTime().getTime() >= beforeTime in testConstructor() 56 && commandInvocation.getTime().getTime() <= afterTime); in testConstructor() 211 Date timestamp = invocationRecord.getTime(); in testGetTime_Immutability() 212 long timeInMillis = timestamp.getTime(); in testGetTime_Immutability() 214 assertEquals("time", timeInMillis, invocationRecord.getTime().getTime()); in testGetTime_Immutability()
|