Home
last modified time | relevance | path

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

/libcore/luni/src/test/java/libcore/javax/xml/datatype/
DDatatypeFactoryTest.java51 assertEquals(6, duration.getSeconds()); in testNewDuration_biiiiii()
61 assertEquals(6, duration.getSeconds()); in testNewDurationDayTime_biiii()
73 assertEquals(6, duration.getSeconds()); in testNewDurationDayTime_bBigInteger()
83 assertEquals(6, duration.getSeconds()); in testNewDurationDayTime_bBigInteger()
101 assertEquals(1, duration.getSeconds()); in testNewDurationDayTime_long()
109 assertEquals(1, duration.getSeconds()); in testNewDurationDayTime_long()
119 assertEquals(0, duration.getSeconds()); in testNewDurationYearMonth_bii()
129 assertEquals(0, duration.getSeconds()); in testNewDurationYearMonth_bBigInteger()
144 assertEquals(1, duration.getSeconds()); in testNewDurationYearMonth_long()
DDurationTest.java91 assertEquals(1, oneSecond.getSeconds()); in testGetSeconds()
92 assertEquals(0, tenMinutes.getSeconds()); in testGetSeconds()
93 assertEquals(0, oneDay.getSeconds()); in testGetSeconds()
94 assertEquals(0, fiveDays.getSeconds()); in testGetSeconds()
95 assertEquals(0, twoMonths.getSeconds()); in testGetSeconds()
96 assertEquals(0, threeYears.getSeconds()); in testGetSeconds()
97 assertEquals(1, y6m5d4h3m2s1.getSeconds()); in testGetSeconds()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKDuration.java114 assertEquals(Duration.ZERO.getSeconds(), 0L); in test_zero()
125 assertEquals(t.getSeconds(), i); in factory_seconds_long()
138 assertEquals(t.getSeconds(), i); in factory_seconds_long_long()
143 assertEquals(t.getSeconds(), i - 1); in factory_seconds_long_long()
148 assertEquals(t.getSeconds(), i); in factory_seconds_long_long()
157 assertEquals(test.getSeconds(), 1); in factory_seconds_long_long_nanosNegativeAdjusted()
189 assertEquals(test.getSeconds(), expectedSeconds); in factory_millis_long()
199 assertEquals(test.getSeconds(), 0); in factory_nanos_nanos()
206 assertEquals(test.getSeconds(), 1); in factory_nanos_nanosSecs()
213 assertEquals(test.getSeconds(), -3); in factory_nanos_negative()
[all …]
/libcore/ojluni/src/main/java/sun/util/calendar/
DImmutableGregorianDate.java121 public int getSeconds() { in getSeconds() method in ImmutableGregorianDate
122 return date.getSeconds(); in getSeconds()
DAbstractCalendar.java237 fraction += date.getSeconds(); in getTimeOfDayValue()
368 t = date.getSeconds(); in validateTime()
DCalendarDate.java258 public int getSeconds() { in getSeconds() method in CalendarDate
/libcore/ojluni/src/main/java/java/time/
DDuration.java607 public long getSeconds() { in getSeconds() method in Duration
673 return plus(duration.getSeconds(), duration.getNano()); in plus()
713 return plusSeconds(duration.getSeconds()).plusNanos(duration.getNano()); in plus()
830 long secsToSubtract = duration.getSeconds(); in minus()
1352 if (unitDur.getSeconds() > LocalTime.SECONDS_PER_DAY) { in truncatedTo()
DInstant.java746 if (unitDur.getSeconds() > LocalTime.SECONDS_PER_DAY) { in truncatedTo()
DLocalTime.java971 if (unitDur.getSeconds() > SECONDS_PER_DAY) { in truncatedTo()
DZonedDateTime.java374 localDateTime = localDateTime.plusSeconds(trans.getDuration().getSeconds()); in ofLocal()
/libcore/ojluni/src/main/java/java/util/
DDate.java875 public int getSeconds() { in getSeconds() method in Date
876 return normalize().getSeconds(); in getSeconds()
1064 CalendarUtils.sprintf0d(sb, date.getSeconds(), 2).append(' '); // ss in toString()
1152 CalendarUtils.sprintf0d(sb, date.getSeconds(), 2); // ss in toGMTString()
1244 int ss = date.getSeconds(); in normalize()
DGregorianCalendar.java1969 maxEnd += d.getSeconds(); in getActualMaximum()
/libcore/luni/src/test/java/libcore/java/text/
DOldDateFormatTest.java237 assertEquals(0, date.getSeconds()); in test_parseLString()
270 assertEquals(0, date.getSeconds()); in test_parseLString()
298 assertEquals(0, date.getSeconds()); in test_parseLString()
312 assertEquals(0, date.getSeconds()); in test_parseLString()
/libcore/ojluni/src/main/java/java/sql/
DTime.java122 int second = super.getSeconds(); in toString()
DDate.java214 public int getSeconds() { in getSeconds() method in Date
DTimestamp.java281 int second = super.getSeconds(); in toString()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DDateTest.java257 assertEquals("Returned incorrect seconds", 0, d.getSeconds()); in test_getSeconds()
401 assertEquals("Set incorrect seconds", 13, d.getSeconds()); in test_setSecondsI()
/libcore/ojluni/annotations/hiddenapi/sun/util/calendar/
DImmutableGregorianDate.java115 public int getSeconds() { in getSeconds() method in ImmutableGregorianDate
DCalendarDate.java126 public int getSeconds() { in getSeconds() method in CalendarDate
/libcore/ojluni/src/test/java/util/GregorianCalendar/
DGregorianCalendarTest.java65 gc.get(java.util.Calendar.SECOND) == date.getSeconds())) { in testGregorianCalendar()
/libcore/luni/src/main/java/javax/xml/datatype/
DDuration.java298 public int getSeconds() { in getSeconds() method in Duration
/libcore/ojluni/src/main/java/java/util/concurrent/
DTimeUnit.java218 long secs = duration.getSeconds(); in convert()
/libcore/ojluni/annotations/hiddenapi/java/time/
DDuration.java165 public long getSeconds() { in getSeconds() method in Duration
/libcore/ojluni/src/main/java/java/time/chrono/
DChronoZonedDateTimeImpl.java150 localDateTime = localDateTime.plusSeconds(trans.getDuration().getSeconds()); in ofBest()
/libcore/api/
Dcurrent.txt11223 method public long getSeconds();
13426 method @Deprecated public int getSeconds();
19601 method public int getSeconds();