Home
last modified time | relevance | path

Searched refs:getTimeInMillis (Results 1 – 23 of 23) sorted by relevance

/libcore/luni/src/test/java/libcore/icu/
DRelativeDateTimeFormatterTest.java46 final long baseTime = cal.getTimeInMillis(); in test_getRelativeTimeSpanStringCTS()
102 final long base = cal.getTimeInMillis(); in test_getRelativeTimeSpanString_helper()
359 final long now = cal.getTimeInMillis(); in test_getRelativeTimeSpanStringGerman()
387 final long now = cal.getTimeInMillis(); in test_getRelativeTimeSpanStringFrench()
427 final long base = cal.getTimeInMillis(); in test_getRelativeDateTimeString()
473 long base = cal.getTimeInMillis(); in test_getRelativeDateTimeStringDST()
480 base = cal.getTimeInMillis(); in test_getRelativeDateTimeStringDST()
488 base = cal.getTimeInMillis(); in test_getRelativeDateTimeStringDST()
494 base = cal.getTimeInMillis(); in test_getRelativeDateTimeStringDST()
516 final long base = cal.getTimeInMillis(); in test_getRelativeDateTimeStringItalian()
[all …]
DDateIntervalFormatTest.java44 long timeWithCurrentYear = c.getTimeInMillis(); in test_formatDateInterval()
47 long fixedTime = c.getTimeInMillis(); in test_formatDateInterval()
51 long onTheHour = c.getTimeInMillis(); in test_formatDateInterval()
177 long jan_19_2042 = c.getTimeInMillis(); in test8862241()
179 long oct_4_2046 = c.getTimeInMillis(); in test8862241()
279 long jan_1_1980 = c.getTimeInMillis(); in test_single_day_events_later_than_epoch()
297 long jan_1_1980 = c.getTimeInMillis(); in test_single_day_events_not_in_UTC()
302 long jul_1_1980 = c.getTimeInMillis(); in test_single_day_events_not_in_UTC()
339 long thisYear = c.getTimeInMillis(); in test10209343_when_this_year()
351 long oldYear = c2.getTimeInMillis(); in test10209343_when_this_year()
[all …]
/libcore/luni/src/test/java/libcore/java/util/
DSimpleTimeZoneTest.java213 while (!timeZone.inDaylightTime(new Date(cal.getTimeInMillis()))) { in findDstEntryAndExit()
225 long entryPoint = cal.getTimeInMillis(); in findDstEntryAndExit()
227 while (timeZone.inDaylightTime(new Date(cal.getTimeInMillis()))) { in findDstEntryAndExit()
238 long exitPoint = cal.getTimeInMillis(); in findDstEntryAndExit()
249 return format.format(new Date(cal.getTimeInMillis())); in formatCalendar()
265 long start = calendar.getTimeInMillis(); in checkDstTransitionTimes()
DCalendarTest.java172 assertEquals(Instant.ofEpochMilli(calendar.getTimeInMillis()), instant); in testToInstant()
226 return c.getTimeInMillis() / ONE_HOUR; in hoursSinceEpoch()
268 assertEquals(expectedMillis, cal.getTimeInMillis()); in checkClear()
271 assertEquals(32400000, cal.getTimeInMillis()); in checkClear()
DOldGregorianCalendarTest.java48 g1.getTimeInMillis(); in test_computeTime()
DGregorianCalendarTest.java332 return cal.getTimeInMillis(); in getDstLosAngeles2014()
395 assertEquals("Incorrect millis: " + description, expectedMillis, cal.getTimeInMillis()); in checkMillis()
/libcore/luni/src/main/java/javax/xml/datatype/
DDuration.java332 public long getTimeInMillis(final Calendar startInstant) { in getTimeInMillis() method in Duration
370 public long getTimeInMillis(final Date startInstant) { in getTimeInMillis() method in Duration
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DTimeZoneTest.java80 .getTimeInMillis(); in test_getOffset_long()
85 .getTimeInMillis(); in test_getOffset_long()
DSimpleTimeZoneTest.java806 assertTrue("Incorrect offset returned", st1.getOffset(cal.getTimeInMillis()) == in test_getOffsetJ()
812 .getOffset(cal.getTimeInMillis())); in test_getOffsetJ()
820 assertEquals(fourHours, st1.getOffset(cal.getTimeInMillis())); in test_getOffsetJ()
DGregorianCalendarTest.java710 assertEquals(1143337800000L, g.getTimeInMillis()); in test_computeTime()
716 assertEquals(1143328800000L, g1.getTimeInMillis()); in test_computeTime()
722 assertEquals(1162079400000L, g1.getTimeInMillis()); in test_computeTime()
DCalendarTest.java477 assertEquals(6017546357372606464L, cal.getTimeInMillis()); in test_getTimeInMillis()
/libcore/ojluni/src/main/java/java/util/
DCalendar.java1734 return new Date(getTimeInMillis()); in getTime()
1759 public long getTimeInMillis() { in getTimeInMillis() method in Calendar
3414 return cal.getTimeInMillis(); in getMillisOf()
3588 return Instant.ofEpochMilli(getTimeInMillis()); in toInstant()
DDate.java1263 fastTime = gc.getTimeInMillis(); in normalize()
DGregorianCalendar.java1965 CalendarSystem mincal = gc.getTimeInMillis() >= gregorianCutover ? in getActualMaximum()
3427 return ZonedDateTime.ofInstant(Instant.ofEpochMilli(getTimeInMillis()), in toZonedDateTime()
DJapaneseImperialCalendar.java1156 LocalGregorianCalendar.Date jd = jcal.getCalendarDate(jc.getTimeInMillis(), in getActualMinimum()
1456 CalendarDate jd = jcal.getCalendarDate(jc.getTimeInMillis(), getZone()); in getActualMaximum()
DFormatter.java3989 long i = t.getTimeInMillis();
4006 long i = t.getTimeInMillis() / 1000;
/libcore/luni/src/test/java/libcore/java/sql/
DOldResultSetGetterTests.java412 Date input = new Date(testCal.getTimeInMillis()); in testGetDateInt()
432 Date input = new Date(testCal.getTimeInMillis()); in testGetDateIntCalendar()
454 Date input = new Date(testCal.getTimeInMillis()); in testGetDateString()
474 Date input = new Date(testCal.getTimeInMillis()); in testGetDateStringCalendar()
DOldPreparedStatementTest.java1353 new Date(cal.getTimeInMillis()), new Date(Integer.MAX_VALUE), in testSetDate_int_Date()
1411 Date[] dates = { new Date(cal.getTimeInMillis()), new Date(Integer.MAX_VALUE), in testSetDate_int_Date_Calendar()
/libcore/luni/src/test/java/tests/java/sql/
DSelectFunctionalityTest.java101 long currentTime = Calendar.getInstance().getTimeInMillis(); in createTestTables()
/libcore/luni/src/main/java/libcore/util/
DZoneInfo.java795 final long longWallTimeSeconds = calendar.getTimeInMillis() / 1000; in mktime()
/libcore/luni/src/test/java/libcore/java/text/
DSimpleDateFormatTest.java248 assertEquals(1293104697000L, parseDateUtc(Locale.UK, fmt, date).getTimeInMillis()); in testParsingUncommonTimeZoneAbbreviations()
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/
DURLConnectionTest.java1127 uc2.setIfModifiedSince(Calendar.getInstance().getTimeInMillis());
/libcore/ojluni/src/main/java/java/text/
DSimpleDateFormat.java1297 .getDisplayName(canonicalID, nameType, calendar.getTimeInMillis()); in subFormat()