Home
last modified time | relevance | path

Searched refs:getTime (Results 1 – 25 of 74) sorted by relevance

123

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DCalendarTest.java45 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 …]
DDateTest.java36 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 …]
DSimpleTimeZoneTest.java58 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 …]
DGregorianCalendarTest.java579 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/
DOldResultSetGetterTests.java933 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 …]
DTimestampTest.java55 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/
DSimpleDateFormatTest.java399 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 …]
/libcore/luni/src/test/java/libcore/java/util/
DDateTest.java52 assertEquals("Wed Jan 01 00:00:00 PST 21", c.getTime().toString()); in test_toGMTString_us()
53 assertEquals("1 Jan 21 08:00:00 GMT", c.getTime().toGMTString()); in test_toGMTString_us()
55 assertEquals("Sun Jan 01 00:00:00 PST 321", c.getTime().toString()); in test_toGMTString_us()
56 assertEquals("1 Jan 321 08:00:00 GMT", c.getTime().toGMTString()); in test_toGMTString_us()
66 assertEquals("Wed Jan 01 00:00:00 PST 21", c.getTime().toString()); in test_toGMTString_nonUs()
67 assertEquals("1 Jan 21 08:00:00 GMT", c.getTime().toGMTString()); in test_toGMTString_nonUs()
69 assertEquals("Sun Jan 01 00:00:00 PST 321", c.getTime().toString()); in test_toGMTString_nonUs()
70 assertEquals("1 Jan 321 08:00:00 GMT", c.getTime().toGMTString()); in test_toGMTString_nonUs()
172 assertEquals(millis, date.getTime()); in check_convertToInstantAndBack()
DTimeZoneTest.java73 assertEquals(-2119680000000L, date.getTime()); in testPreHistoricInDaylightTime()
74 assertEquals(-28800000, tz.getOffset(date.getTime())); in testPreHistoricInDaylightTime()
80 assertEquals(-28800000, tz.getOffset(date.getTime())); in testPreHistoricInDaylightTime()
113 return date.getTime() / 1000; in parseIsoTime()
125 int currentOffset = tz.getOffset(new Date(0).getTime()); in testZeroTransitionZones()
126 assertEquals(currentOffset, tz.getOffset(new Date(Integer.MIN_VALUE).getTime())); in testZeroTransitionZones()
127 assertEquals(currentOffset, tz.getOffset(new Date(Integer.MAX_VALUE).getTime())); in testZeroTransitionZones()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
DZipEntryTest.java162 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 …]
DZipOutputStreamTest.java321 readEntry.getTime()); in test_timeSerializationRounding()
329 readEntry.getTime()); in test_timeSerializationRounding()
398 assertEquals(entry.getName(), entry.getTime(), readEntry.getTime()); in test_exttSupport()
/libcore/ojluni/src/main/java/java/security/
DTimestamp.java79 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/sun/security/x509/
DCertificateValidity.java62 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/util/
DDate.java630 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 …]
DTimer.java208 sched(task, time.getTime(), 0); in schedule()
287 sched(task, firstTime.getTime(), -period); in schedule()
370 sched(task, firstTime.getTime(), period); in scheduleAtFixedRate()
/libcore/ojluni/src/main/java/java/security/cert/
DCertificateRevokedException.java94 this.revocationDate = new Date(revocationDate.getTime()); in CertificateRevokedException()
154 return new Date(invalidity.getTime()); in getInvalidityDate()
224 revocationDate = new Date(revocationDate.getTime()); in readObject()
DX509CRLSelector.java425 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/luni/src/test/java/libcore/java/time/zone/
DIcuZoneRulesProviderTest.java104 icuTrans = timeZone.getNextTransition(icuTrans.getTime(), false); in testTransitionsNearInstants()
112 icuTrans = timeZone.getPreviousTransition(icuTrans.getTime(), false); in testTransitionsNearInstants()
141 icuTrans = timeZone.getNextTransition(icuTrans.getTime(), false); in testAllTransitions()
176 Instant.ofEpochMilli(icuTransition.getTime()), jtTransition.getInstant()); in assertEquivalent()
/libcore/ojluni/src/main/java/java/sql/
DTimestamp.java143 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()
DCallableStatement.java345 java.sql.Time getTime(int parameterIndex) throws SQLException; in getTime() method
547 java.sql.Time getTime(int parameterIndex, Calendar cal) in getTime() method
1519 java.sql.Time getTime(String parameterName) throws SQLException; in getTime() method
1717 java.sql.Time getTime(String parameterName, Calendar cal) in getTime() method
/libcore/support/src/test/java/tests/support/
DSupport_TestWebData.java71 new Date().getTime() + 100000),
73 new Date().getTime() + 100000),
/libcore/luni/src/test/java/libcore/java/text/
DSimpleDateFormatTest.java181 return parseDateUtc(Locale.ENGLISH, fmt, value).getTime().getTime(); in parseTimeUtc()
322 assertEquals(1278557088000L, date.getTime()); in testTimeZoneFormatting()
387 assertEquals(1346259765000L, d.getTime()); in testParseArabic()
402 assertEquals(1376927400000L, sdf.parse("19. Aug 2013 8:50").getTime()); in test_59383()
403 assertEquals(1376927400000L, sdf.parse("19. Aug. 2013 8:50").getTime()); in test_59383()
491 assertEquals(tz.getOffset(gmtDate.getTime()), customDate.getTime() - gmtDate.getTime()); in testZoneStringsUsedForParsingWhenPresent()
/libcore/ojluni/src/main/java/java/time/zone/
DIcuZoneRulesProvider.java141 TimeUnit.MILLISECONDS.toSeconds(transition.getTime()), in generateZoneRules()
150 TimeUnit.MILLISECONDS.toSeconds(transition.getTime()), in generateZoneRules()
172 transition = tz.getNextTransition(transition.getTime(), false); in generateZoneRules()
183 transition = tz.getNextTransition(transition.getTime(), false); in generateZoneRules()
/libcore/ojluni/src/main/java/sun/security/util/
DDerInputBuffer.java268 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/
DDuration.java374 return getCalendarTimeInMillis(cal) - startInstant.getTime(); in getTimeInMillis()
978 return cal.getTime().getTime(); in getCalendarTimeInMillis()

123