Home
last modified time | relevance | path

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

/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKDuration.java112 assertEquals(Duration.ZERO.getSeconds(), 0L); in test_zero()
123 assertEquals(t.getSeconds(), i); in factory_seconds_long()
136 assertEquals(t.getSeconds(), i); in factory_seconds_long_long()
141 assertEquals(t.getSeconds(), i - 1); in factory_seconds_long_long()
146 assertEquals(t.getSeconds(), i); in factory_seconds_long_long()
155 assertEquals(test.getSeconds(), 1); in factory_seconds_long_long_nanosNegativeAdjusted()
187 assertEquals(test.getSeconds(), expectedSeconds); in factory_millis_long()
197 assertEquals(test.getSeconds(), 0); in factory_nanos_nanos()
204 assertEquals(test.getSeconds(), 1); in factory_nanos_nanosSecs()
211 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/util/
DDate.java877 public int getSeconds() { in getSeconds() method in Date
878 return normalize().getSeconds(); in getSeconds()
1063 CalendarUtils.sprintf0d(sb, date.getSeconds(), 2).append(' '); // ss in toString()
1151 CalendarUtils.sprintf0d(sb, date.getSeconds(), 2); // ss in toGMTString()
1243 int ss = date.getSeconds(); in normalize()
DGregorianCalendar.java1972 maxEnd += d.getSeconds(); in getActualMaximum()
/libcore/luni/src/test/java/libcore/java/text/
DOldDateFormatTest.java232 assertEquals(0, date.getSeconds()); in test_parseLString()
265 assertEquals(0, date.getSeconds()); in test_parseLString()
293 assertEquals(0, date.getSeconds()); in test_parseLString()
307 assertEquals(0, date.getSeconds()); in test_parseLString()
/libcore/ojluni/src/main/java/java/util/zip/
DZipUtils.java105 d.getSeconds() >> 1) & 0xffffffffL; in javaToDosTime()
/libcore/ojluni/src/main/java/java/time/
DDuration.java604 public long getSeconds() { in getSeconds() method in Duration
670 return plus(duration.getSeconds(), duration.getNano()); in plus()
710 return plusSeconds(duration.getSeconds()).plusNanos(duration.getNano()); in plus()
827 long secsToSubtract = duration.getSeconds(); in minus()
DInstant.java747 if (unitDur.getSeconds() > LocalTime.SECONDS_PER_DAY) { in truncatedTo()
DLocalTime.java948 if (unitDur.getSeconds() > SECONDS_PER_DAY) { in truncatedTo()
DZonedDateTime.java373 localDateTime = localDateTime.plusSeconds(trans.getDuration().getSeconds()); in ofLocal()
/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.java255 assertEquals("Returned incorrect seconds", 0, d.getSeconds()); in test_getSeconds()
399 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/luni/src/main/java/javax/xml/datatype/
DDuration.java298 public int getSeconds() { in getSeconds() method in Duration
/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.java149 localDateTime = localDateTime.plusSeconds(trans.getDuration().getSeconds()); in ofBest()
/libcore/luni/src/test/java/libcore/libcore/util/
DZoneInfoTest.java725 long seconds = offset.getSeconds(); in offsetToSeconds()