/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | CalendarTest.java | 45 assertTrue("Incorrect result 0: " + cal.getTime().getTime(), cal in test_setII() 46 .getTime().getTime() == 1009861200000L); in test_setII() 51 assertTrue("Incorrect result 0a: " + cal.getTime(), cal.getTime() in test_setII() 52 .getTime() == 1014958800000L); in test_setII() 57 assertTrue("Incorrect result 0b: " + cal.getTime(), cal.getTime() in test_setII() 58 .getTime() == 1011848400000L); in test_setII() 75 assertTrue("Incorrect result 0c1: " + cal.getTime().getTime(), cal in test_setII() 76 .getTime().getTime() == 1010379600000L); in test_setII() 81 assertTrue("Incorrect result 0c2: " + cal.getTime().getTime(), cal in test_setII() 82 .getTime().getTime() == 1009861200000L); in test_setII() [all …]
|
D | DateTest.java | 36 long oldTime = gc.getTime().getTime(); in test_Constructor() 37 long now = new Date().getTime(); in test_Constructor() 56 assertTrue("Wrong time zone", date.equals(cal.getTime())); in test_ConstructorIII() 204 .getTime(); in test_getDate() 214 .getTime(); in test_getDay() 224 .getTime(); in test_getHours() 234 .getTime(); in test_getMinutes() 244 .getTime(); in test_getMonth() 254 .getTime(); in test_getSeconds() 265 assertEquals("Returned incorrect time", 1900000, d2.getTime()); in test_getTime() [all …]
|
D | SimpleTimeZoneTest.java | 58 13).getTime())); in test_ConstructorILjava_lang_StringIIIIIIII() 61 13).getTime()))); in test_ConstructorILjava_lang_StringIIIIIIII() 115 13).getTime())); in test_ConstructorILjava_lang_StringIIIIIIIII() 118 13).getTime()))); in test_ConstructorILjava_lang_StringIIIIIIIII() 408 .getTime())); in test_inDaylightTimeLjava_util_Date() 411 .inDaylightTime(gc.getTime()))); in test_inDaylightTimeLjava_util_Date() 415 .inDaylightTime(gc.getTime()))); in test_inDaylightTimeLjava_util_Date() 416 Date date = new Date(gc.getTime().getTime() + 1000); in test_inDaylightTimeLjava_util_Date() 421 .inDaylightTime(gc.getTime()))); in test_inDaylightTimeLjava_util_Date() 422 date = new Date(gc.getTime().getTime() - 1000); in test_inDaylightTimeLjava_util_Date() [all …]
|
D | GregorianCalendarTest.java | 579 assertEquals("Wrong year: " + cal.getTime(), 2004, cal in test_rollIZ() 581 assertEquals("Wrong month: " + cal.getTime(), Calendar.JANUARY, cal in test_rollIZ() 585 assertEquals("Wrong date: " + cal.getTime(), 2, cal.get(Calendar.DATE)); in test_rollIZ() 591 assertEquals("Wrong year: " + cal.getTime(), 1994, cal in test_rollIZ() 593 assertEquals("Wrong month: " + cal.getTime(), Calendar.JANUARY, cal in test_rollIZ() 595 assertEquals("Wrong date: " + cal.getTime(), 7, cal.get(Calendar.DATE)); in test_rollIZ() 598 assertEquals("Wrong year: " + cal.getTime(), 1994, cal in test_rollIZ() 600 assertEquals("Wrong month: " + cal.getTime(), Calendar.JANUARY, cal in test_rollIZ() 602 assertEquals("Wrong date: " + cal.getTime(), 14, cal.get(Calendar.DATE)); in test_rollIZ() 605 assertEquals("Wrong year: " + cal.getTime(), 1994, cal in test_rollIZ() [all …]
|
/libcore/luni/src/test/java/libcore/java/sql/ |
D | OldResultSetGetterTests.java | 933 long millis = cal.getTime().getTime(); in testGetTimeInt() 947 long millis2 = cal2.getTime().getTime(); in testGetTimeInt() 952 Time resTime = res.getTime(i); in testGetTimeInt() 955 assertEquals(t1.getTime(), resTime.getTime()); in testGetTimeInt() 960 resTime = res.getTime(i); in testGetTimeInt() 963 assertEquals(t2.getTime(), resTime.getTime()); in testGetTimeInt() 968 assertNull(res.getTime(i)); in testGetTimeInt() 971 res.getTime(500); in testGetTimeInt() 992 long millis = cal1.getTime().getTime(); in testGetTimeIntCalendar() 1004 long millis2 = cal2.getTime().getTime(); in testGetTimeIntCalendar() [all …]
|
D | TimestampTest.java | 55 assertEquals(1009835157000L + 123456789 / 1000000, t1.getTime()); in testValueOf() 59 assertEquals(978397507000L + 123000000 / 1000000, t2.getTime()); in testValueOf() 63 assertEquals(978397507000L, t3.getTime()); in testValueOf()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | SimpleDateFormatTest.java | 399 format.format(cal.getTime(), buffer, position); in assertFormat() 456 Date summerDate = new GregorianCalendar(1999, Calendar.JUNE, 2, 15, 3, 6).getTime(); in test_timeZoneFormatting() 457 Date winterDate = new GregorianCalendar(1999, Calendar.JANUARY, 12).getTime(); in test_timeZoneFormatting() 528 Date time = cal.getTime(); in test_parseLjava_lang_StringLjava_text_ParsePosition() 535 time = cal.getTime(); in test_parseLjava_lang_StringLjava_text_ParsePosition() 542 time = cal.getTime(); in test_parseLjava_lang_StringLjava_text_ParsePosition() 546 time = cal.getTime(); in test_parseLjava_lang_StringLjava_text_ParsePosition() 551 Calendar.JANUARY, 1, 3, 0).getTime(), 1, 5); in test_parseLjava_lang_StringLjava_text_ParsePosition() 553 Calendar.JANUARY, 1, 15, 0).getTime(), 1, 5); in test_parseLjava_lang_StringLjava_text_ParsePosition() 555 Calendar.JANUARY, 1, 0, 0, 59).getTime(), 0, 4); in test_parseLjava_lang_StringLjava_text_ParsePosition() [all …]
|
D | Support_MessageFormat.java | 53 Date date = new GregorianCalendar(2005, 1, 28, 14, 20, 16).getTime(); in t_format_with_FieldPosition() 82 Date date = new GregorianCalendar(2005, 1, 28, 14, 20, 16).getTime(); in t_formatToCharacterIterator()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
D | ZipEntryTest.java | 162 assertEquals("Failed to get time", orgTime, zentry.getTime()); in test_getTime() 366 assertEquals("Test 1: Failed to set time: " + zentry.getTime(), (orgTime + 10000), in test_setTimeJ() 367 zentry.getTime()); in test_setTimeJ() 369 assertEquals("Test 2: Failed to set time: " + zentry.getTime(), (orgTime - 10000), in test_setTimeJ() 370 zentry.getTime()); in test_setTimeJ() 378 assertEquals("Test 3: Failed to set time: " + zentry.getTime(), in test_setTimeJ() 379 0L, zentry.getTime()); in test_setTimeJ() 381 assertEquals("Test 3a: Failed to set time: " + zentry.getTime(), in test_setTimeJ() 382 0L, zentry.getTime()); in test_setTimeJ() 385 assertEquals("Test 3b: Failed to set time: " + zentry.getTime(), in test_setTimeJ() [all …]
|
D | ZipOutputStreamTest.java | 321 readEntry.getTime()); in test_timeSerializationRounding() 329 readEntry.getTime()); in test_timeSerializationRounding() 398 assertEquals(entry.getName(), entry.getTime(), readEntry.getTime()); in test_exttSupport()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | DateTest.java | 52 assertEquals("Wed Jan 01 00:00:00 PST 21", c.getTime().toString()); in test_toGMTString_us() 53 String actual21GmtString = c.getTime().toGMTString(); in test_toGMTString_us() 58 assertEquals("Sun Jan 01 00:00:00 PST 321", c.getTime().toString()); in test_toGMTString_us() 59 String actual321GmtString = c.getTime().toGMTString(); in test_toGMTString_us() 71 assertEquals("Wed Jan 01 00:00:00 PST 21", c.getTime().toString()); in test_toGMTString_nonUs() 72 String actual21GmtString = c.getTime().toGMTString(); in test_toGMTString_nonUs() 77 assertEquals("Sun Jan 01 00:00:00 PST 321", c.getTime().toString()); in test_toGMTString_nonUs() 78 String actual321GmtString = c.getTime().toGMTString(); in test_toGMTString_nonUs() 182 assertEquals(millis, date.getTime()); in check_convertToInstantAndBack()
|
D | TimeZoneTest.java | 88 assertEquals(-2119680000000L, date.getTime()); in testPreHistoricInDaylightTime_old() 89 assertEquals(-28800000, tz.getOffset(date.getTime())); in testPreHistoricInDaylightTime_old() 95 assertEquals(-28800000, tz.getOffset(date.getTime())); in testPreHistoricInDaylightTime_old() 142 return date.getTime(); in parseIsoTime() 155 int currentOffset = tz.getOffset(new Date(0).getTime()); in testMinimalTransitionZones() 156 assertEquals(currentOffset, tz.getOffset(new Date(Integer.MIN_VALUE).getTime())); in testMinimalTransitionZones() 157 assertEquals(currentOffset, tz.getOffset(new Date(Integer.MAX_VALUE).getTime())); in testMinimalTransitionZones()
|
/libcore/ojluni/src/main/java/java/security/ |
D | Timestamp.java | 79 this.timestamp = new Date(timestamp.getTime()); // clone in Timestamp() 89 return new Date(timestamp.getTime()); // clone in getTimestamp() 162 timestamp = new Date(timestamp.getTime()); in readObject()
|
/libcore/ojluni/src/main/java/java/util/ |
D | Date.java | 630 return cal.getTime(ldate); in parse() 635 return cal.getTime(udate) + tzoffset * (60 * 1000); in parse() 905 public long getTime() { in getTime() method in Date 971 return obj instanceof Date && getTime() == ((Date) obj).getTime(); in equals() 983 return gcal.getTime(d); in getMillisOf() 1015 long ht = this.getTime(); in hashCode() 1141 long t = getTime(); in toGMTString() 1144 (BaseCalendar.Date) cal.getCalendarDate(getTime(), (TimeZone)null); in toGMTString() 1275 fastTime = cal.getTime(date); in normalize() 1283 fastTime = ncal.getTime(date); in normalize() [all …]
|
D | Timer.java | 215 sched(task, time.getTime(), 0); in schedule() 294 sched(task, firstTime.getTime(), -period); in schedule() 377 sched(task, firstTime.getTime(), period); in scheduleAtFixedRate()
|
/libcore/ojluni/src/main/java/sun/security/x509/ |
D | CertificateValidity.java | 62 return (new Date(notBefore.getTime())); in getNotBefore() 67 return (new Date(notAfter.getTime())); in getNotAfter() 157 if (notBefore.getTime() < YR_2050) { in encode() 162 if (notAfter.getTime() < YR_2050) { in encode()
|
/libcore/ojluni/src/main/java/java/security/cert/ |
D | CertificateRevokedException.java | 94 this.revocationDate = new Date(revocationDate.getTime()); in CertificateRevokedException() 154 return new Date(invalidity.getTime()); in getInvalidityDate() 224 revocationDate = new Date(revocationDate.getTime()); in readObject()
|
D | X509CRLSelector.java | 425 this.dateAndTime = new Date(dateAndTime.getTime()); in setDateAndTime() 435 (dateAndTime == null ? null : new Date(dateAndTime.getTime())); in setDateAndTime() 679 nowPlusSkew = new Date(dateAndTime.getTime() + skew); in match() 680 nowMinusSkew = new Date(dateAndTime.getTime() - skew); in match()
|
/libcore/ojluni/src/main/java/java/sql/ |
D | Timestamp.java | 143 public long getTime() { in getTime() method in Timestamp 144 long time = super.getTime(); in getTime() 476 long thisTime = this.getTime(); in compareTo() 477 long anotherTime = ts.getTime(); in compareTo() 513 Timestamp ts = new Timestamp(o.getTime()); in compareTo()
|
D | CallableStatement.java | 346 java.sql.Time getTime(int parameterIndex) throws SQLException; in getTime() method 548 java.sql.Time getTime(int parameterIndex, Calendar cal) in getTime() method 1520 java.sql.Time getTime(String parameterName) throws SQLException; in getTime() method 1718 java.sql.Time getTime(String parameterName, Calendar cal) in getTime() method
|
/libcore/support/src/test/java/tests/support/ |
D | Support_TestWebData.java | 71 new Date().getTime() + 100000), 73 new Date().getTime() + 100000),
|
/libcore/ojluni/src/main/java/sun/security/util/ |
D | DerInputBuffer.java | 268 return getTime(len, false); in getUTCTime() 283 return getTime(len, true); in getGeneralizedTime() 293 private Date getTime(int len, boolean generalized) throws IOException { in getTime() method in DerInputBuffer 407 long time = gcal.getTime(date); in getTime()
|
/libcore/luni/src/main/java/javax/xml/datatype/ |
D | Duration.java | 374 return getCalendarTimeInMillis(cal) - startInstant.getTime(); in getTimeInMillis() 978 return cal.getTime().getTime(); in getCalendarTimeInMillis()
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
D | ZipOutputStreamTest.java | 130 assertTrue(timeBeforeZip <= entry.getTime()); in testPutNextEntryUsingCurrentTime() 131 assertTrue(timeAfterZip >= entry.getTime()); in testPutNextEntryUsingCurrentTime()
|
/libcore/luni/src/test/java/libcore/java/text/ |
D | SimpleDateFormatTest.java | 207 return parseDateUtc(Locale.ENGLISH, fmt, value).getTime().getTime(); in parseTimeUtc() 348 assertEquals(1278557088000L, date.getTime()); in testTimeZoneFormatting() 401 assertEquals(1612822440000L, date.getTime()); in testParseMetazoneFallbacksToLocale() 411 assertEquals(1346259765000L, d.getTime()); in testParseArabic() 426 assertEquals(1376927400000L, sdf.parse("19. Aug 2013 8:50").getTime()); in test_59383() 427 assertEquals(1376927400000L, sdf.parse("19. Aug. 2013 8:50").getTime()); in test_59383() 515 assertEquals(tz.getOffset(gmtDate.getTime()), customDate.getTime() - gmtDate.getTime()); in testZoneStringsUsedForParsingWhenPresent()
|