/external/apache-commons-lang/src/test/java/org/apache/commons/lang3/time/ |
D | FastDateParserTest.java | 100 final String formattedDate = simpleDateFormat.format(cal.getTime()); in checkParse() 231 … assertEquals(cal.getTime().getTime(), parser.parse(dateStub + trial.one).getTime() - trial.offset, in test1806() 235 assertEquals(cal.getTime(), parser.parse(dateStub + trial.two), message + trial.two); in test1806() 238 … assertEquals(cal.getTime(), parser.parse(dateStub + trial.three), message + trial.three); in test1806() 259 assertEquals(cal.getTime(), h.parse("2010-08-01 12 AM 33:20")); in testAmPm() 260 assertEquals(cal.getTime(), K.parse("2010-08-01 0 AM 33:20")); in testAmPm() 261 assertEquals(cal.getTime(), k.parse("2010-08-01 00:33:20")); in testAmPm() 262 assertEquals(cal.getTime(), H.parse("2010-08-01 00:33:20")); in testAmPm() 265 assertEquals(cal.getTime(), h.parse("2010-08-01 3 AM 33:20")); in testAmPm() 266 assertEquals(cal.getTime(), K.parse("2010-08-01 3 AM 33:20")); in testAmPm() [all …]
|
D | DateFormatUtilsTest.java | 43 assertEquals(expectedValue, DateFormatUtils.format(cal.getTime(), pattern, timeZone)); in assertFormats() 44 … assertEquals(expectedValue, DateFormatUtils.format(cal.getTime().getTime(), pattern, timeZone)); in assertFormats() 98 assertEquals(buffer.toString(), DateFormatUtils.format(c.getTime(), "yyyyMdH")); in testFormat() 100 assertEquals(buffer.toString(), DateFormatUtils.format(c.getTime().getTime(), "yyyyMdH")); in testFormat() 102 assertEquals(buffer.toString(), DateFormatUtils.format(c.getTime(), "yyyyMdH", Locale.US)); in testFormat() 104 …assertEquals(buffer.toString(), DateFormatUtils.format(c.getTime().getTime(), "yyyyMdH", Locale.US… in testFormat() 123 assertEquals(buffer.toString(), DateFormatUtils.format(c.getTime(), "yyyyMdH")); in testFormatCalendar() 127 assertEquals(buffer.toString(), DateFormatUtils.format(c.getTime(), "yyyyMdH", Locale.US)); in testFormatCalendar() 134 …assertEquals ("2005-01-01T12:00:00", DateFormatUtils.formatUTC(c.getTime(), DateFormatUtils.ISO_DA… in testFormatUTC() 136 …assertEquals ("2005-01-01T12:00:00", DateFormatUtils.formatUTC(c.getTime().getTime(), DateFormatUt… in testFormatUTC() [all …]
|
D | StopWatchTest.java | 201 final long suspendTime = watch.getTime(); in testLang315() 204 final long totalTime = watch.getTime(); in testLang315() 244 assertEquals(2L, watch.getTime(TimeUnit.HOURS)); in testStopWatchGetWithTimeUnit() 245 assertEquals(179L, watch.getTime(TimeUnit.MINUTES)); in testStopWatchGetWithTimeUnit() 246 assertEquals(10741L, watch.getTime(TimeUnit.SECONDS)); in testStopWatchGetWithTimeUnit() 247 assertEquals(10741999L, watch.getTime(TimeUnit.MILLISECONDS)); in testStopWatchGetWithTimeUnit() 255 final long time = watch.getTime(); in testStopWatchSimple() 256 assertEquals(time, watch.getTime()); in testStopWatchSimple() 262 assertEquals(0, watch.getTime()); in testStopWatchSimple() 268 assertEquals(0, watch.getTime()); [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/ |
D | CalendarRegressionTest.java | 113 logln("ms = " + cal.getTime() + " (" + cal.getTime().getTime() + ")"); in Test4031502() 125 logln("ms = " + cal2.getTime() + " (" + cal2.getTime().getTime() + ")"); in Test4031502() 205 cal.getTime(); in Test4051765() 239 * GregorianCalendar(1997,3,10); calendar.getTime(); logln("April 10, 281 Date cd = gc.getTime(); in Test4059654() 285 Date exp = cal.getTime(); in Test4059654() 321 Date d = getAssociatedDate(tempcal.getTime()); in Test4070502() 331 * unnecessary "getTime()'s" below are a work-around for a bug in jdk 1.1.3 342 // cal.getTime(); // <--- REMOVE THIS TO SEE BUG in getAssociatedDate() 347 // cal.getTime(); in getAssociatedDate() [all …]
|
D | CompatibilityTest.java | 60 …"jdk change at: " + jdkgc.getGregorianChange() + "(" + jdkgc.getGregorianChange().getTime() +")" ); in TestGregorianChangeover() 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() [all …]
|
/external/icu/icu4j/main/core/src/test/java/com/ibm/icu/dev/test/calendar/ |
D | CalendarRegressionTest.java | 110 logln("ms = " + cal.getTime() + " (" + cal.getTime().getTime() + ")"); in Test4031502() 122 logln("ms = " + cal2.getTime() + " (" + cal2.getTime().getTime() + ")"); in Test4031502() 202 cal.getTime(); in Test4051765() 236 * GregorianCalendar(1997,3,10); calendar.getTime(); logln("April 10, 278 Date cd = gc.getTime(); in Test4059654() 282 Date exp = cal.getTime(); in Test4059654() 318 Date d = getAssociatedDate(tempcal.getTime()); in Test4070502() 328 * unnecessary "getTime()'s" below are a work-around for a bug in jdk 1.1.3 339 // cal.getTime(); // <--- REMOVE THIS TO SEE BUG in getAssociatedDate() 344 // cal.getTime(); in getAssociatedDate() [all …]
|
D | CompatibilityTest.java | 57 …"jdk change at: " + jdkgc.getGregorianChange() + "(" + jdkgc.getGregorianChange().getTime() +")" ); in TestGregorianChangeover() 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() [all …]
|
/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/apache-commons-math/src/main/java/org/apache/commons/math3/ode/ |
D | ContinuousOutputFieldModel.java | 137 final T current = lastInterpolator.getCurrentState().getTime(); in append() 138 final T previous = lastInterpolator.getPreviousState().getTime(); in append() 152 finalTime = (steps.get(index)).getCurrentState().getTime(); in append() 171 initialTime = initialState.getTime(); in init() 191 initialTime = interpolator.getPreviousState().getTime(); in handleStep() 198 finalTime = interpolator.getCurrentState().getTime(); in handleStep() 234 .getTime() in getInterpolatedState() 235 .add(sMin.getCurrentState().getTime()) in getInterpolatedState() 242 .getTime() in getInterpolatedState() 243 .add(sMax.getCurrentState().getTime()) in getInterpolatedState() [all …]
|
/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/icu4j/samples/src/main/java/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/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/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue49/ |
D | CalendarTest.java | 102 assertEquals(TimeZone.getTimeZone("GMT-5:00").getOffset(calendar.getTime().getTime()), in testLoadBean() 103 calendar.getTimeZone().getOffset(calendar.getTime().getTime())); in testLoadBean() 107 assertEquals(date, calendar.getTime()); in testLoadBean() 114 assertEquals(TimeZone.getTimeZone("GMT-5:00").getOffset(calendar.getTime().getTime()), in testLoadWithTag() 115 calendar.getTimeZone().getOffset(calendar.getTime().getTime())); in testLoadWithTag() 118 assertEquals(date, calendar.getTime()); in testLoadWithTag()
|
/external/cronet/stable/third_party/icu/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/cronet/tot/third_party/icu/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/icu/android_icu4j/src/main/tests/android/icu/dev/test/timezone/ |
D | TimeZoneBoundaryTest.java | 76 long min = d.getTime(); in findDaylightBoundaryUsingDate() 121 // long min = d.getTime(); 156 long min = d.getTime(); in findDaylightBoundaryUsingTimeZone() 215 d.getTime(); in showDate() 234 fmt.format(d) + " = " + d.getTime(); in showDate() 250 Date d = cal.getTime(); in verifyDST() 254 d.getTime()/3600000.0 + ")"); in verifyDST() 312 Date d = cal.getTime(); in verifyMapping() 313 double e = d.getTime() / H; in verifyMapping() 358 // Date d = cal.getTime(); [all …]
|
/external/icu/icu4j/main/core/src/test/java/com/ibm/icu/dev/test/timezone/ |
D | TimeZoneBoundaryTest.java | 73 long min = d.getTime(); in findDaylightBoundaryUsingDate() 118 // long min = d.getTime(); 153 long min = d.getTime(); in findDaylightBoundaryUsingTimeZone() 212 d.getTime(); in showDate() 231 fmt.format(d) + " = " + d.getTime(); in showDate() 247 Date d = cal.getTime(); in verifyDST() 251 d.getTime()/3600000.0 + ")"); in verifyDST() 309 Date d = cal.getTime(); in verifyMapping() 310 double e = d.getTime() / H; in verifyMapping() 355 // Date d = cal.getTime(); [all …]
|
/external/gson/extras/src/test/java/com/google/gson/typeadapters/ |
D | UtcDateTypeAdapterTest.java | 42 assertEquals(expected.getTime(), actual.getTime()); in testLocalTimeZone() 49 Date expected = cal.getTime(); in testDifferentTimeZones() 53 assertEquals(expected.getTime(), actual.getTime()); in testDifferentTimeZones() 78 assertEquals(expected.getTime(), actual.getTime()); in testUtcWithJdk7Default()
|
/external/mockftpserver/tags/2.0.1/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() 206 * Test that the getTime() return value does not break immutability 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.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() 206 * Test that the getTime() return value does not break immutability 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.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() 206 * Test that the getTime() return value does not break immutability 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.0-rc1/MockFtpServer/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() 206 * Test that the getTime() return value does not break immutability 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() 207 * Test that the getTime() return value does not break immutability 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/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() 207 * Test that the getTime() return value does not break immutability 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.4/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() 207 * Test that the getTime() return value does not break immutability 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()
|