/libcore/ojluni/src/main/java/java/time/chrono/ |
D | ChronoZonedDateTime.java | 207 case INSTANT_SECONDS: return toEpochSecond(); in getLong() 531 return Instant.ofEpochSecond(toEpochSecond(), toLocalTime().getNano()); in toInstant() 545 default long toEpochSecond() { in toEpochSecond() method 570 int cmp = Long.compare(toEpochSecond(), other.toEpochSecond()); in compareTo() 600 long thisEpochSec = toEpochSecond(); in isBefore() 601 long otherEpochSec = other.toEpochSecond(); in isBefore() 620 long thisEpochSec = toEpochSecond(); in isAfter() 621 long otherEpochSec = other.toEpochSecond(); in isAfter() 640 return toEpochSecond() == other.toEpochSecond() && in isEqual()
|
D | ChronoLocalDateTime.java | 446 return Instant.ofEpochSecond(toEpochSecond(offset), toLocalTime().getNano()); in toInstant() 463 default long toEpochSecond(ZoneOffset offset) { in toEpochSecond() method
|
D | AbstractChronology.java | 152 int cmp = Long.compare(dateTime1.toEpochSecond(), dateTime2.toEpochSecond());
|
D | ChronoZonedDateTimeImpl.java | 288 case INSTANT_SECONDS: return plus(newValue - toEpochSecond(), SECONDS); in with()
|
/libcore/luni/src/test/java/libcore/java/time/zone/ |
D | ZoneOffsetTransitionTest.java | 43 OffsetDateTime.of(time, offsetP1).toEpochSecond(), in test_toEpochSeconds() 44 transition.toEpochSecond()); in test_toEpochSeconds()
|
/libcore/ojluni/src/main/java/java/time/ |
D | OffsetDateTime.java | 171 int cmp = Long.compare(datetime1.toEpochSecond(), datetime2.toEpochSecond()); in compareInstant() 630 case INSTANT_SECONDS: return toEpochSecond(); in getLong() 1767 public long toEpochSecond() { in toEpochSecond() method in OffsetDateTime 1768 return dateTime.toEpochSecond(offset); in toEpochSecond() 1816 long thisEpochSec = toEpochSecond(); in isAfter() 1817 long otherEpochSec = other.toEpochSecond(); in isAfter() 1833 long thisEpochSec = toEpochSecond(); in isBefore() 1834 long otherEpochSec = other.toEpochSecond(); in isBefore() 1850 return toEpochSecond() == other.toEpochSecond() && in isEqual()
|
D | ZonedDateTime.java | 433 return create(localDateTime.toEpochSecond(offset), localDateTime.getNano(), zone); in ofInstant() 846 case INSTANT_SECONDS: return toEpochSecond(); in getLong() 986 create(dateTime.toEpochSecond(offset), dateTime.getNano(), zone); in withZoneSameInstant()
|
/libcore/ojluni/src/main/java/java/time/zone/ |
D | ZoneOffsetTransition.java | 212 Ser.writeEpochSec(toEpochSecond(), out); in writeExternal() 255 public long toEpochSecond() { in toEpochSecond() method in ZoneOffsetTransition 256 return transition.toEpochSecond(offsetBefore); in toEpochSecond()
|
D | ZoneRules.java | 225 this.standardTransitions[i] = standardOffsetTransitionList.get(i).toEpochSecond(); in ZoneRules() 249 this.savingsInstantTransitions[i] = transitionList.get(i).toEpochSecond(); in ZoneRules() 492 if (epochSec < trans.toEpochSecond()) { in getOffset() 850 if (epochSec < trans.toEpochSecond()) { in nextTransition() 900 if (epochSec > transArray[i].toEpochSecond()) { in previousTransition()
|
/libcore/ojluni/src/test/java/time/test/java/time/ |
D | TestOffsetDateTime_instants.java | 323 assertEquals(dt.toEpochSecond(), 0); in test_toEpochSecond_19700101() 328 assertEquals(dt.toEpochSecond(), 0); in test_toEpochSecond_19700101_oneNano() 333 assertEquals(dt.toEpochSecond(), -1); in test_toEpochSecond_19700101_minusOneNano() 338 assertEquals(dt.toEpochSecond(), 24L * 60L * 60L); in test_toEpochSecond_19700102() 343 assertEquals(dt.toEpochSecond(), -24L * 60L * 60L); in test_toEpochSecond_19691231()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKZonedDateTime.java | 960 assertEquals(test.getLong(ChronoField.INSTANT_SECONDS), test.toEpochSecond()); 2153 assertEquals(a.toEpochSecond(), i); 2163 assertEquals(a.toEpochSecond(), -i); 2171 assertEquals(dt.toEpochSecond(), expectedEpSec); 2177 assertEquals(dt.toEpochSecond(), expectedEpSec - 3600); 2183 assertEquals(dt.toEpochSecond(), expectedEpSec + 3600);
|
D | TCKOffsetDateTime.java | 633 assertEquals(test.getLong(ChronoField.INSTANT_SECONDS), test.toEpochSecond()); 1288 assertEquals(a.toEpochSecond(), i); 1296 assertEquals(a.toEpochSecond(), -i);
|
D | TCKLocalDateTime.java | 3014 assertEquals(a.toEpochSecond(offset), j - i * 3600); 3023 assertEquals(a.toEpochSecond(ZoneOffset.UTC), -i);
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
D | TCKIsoChronology.java | 242 … return ZonedDateTime.of(2012, 6, 30, 12, 30, 40, 0, ZoneId.of("Europe/London")).toEpochSecond(); in test_zonedDateTime_TemporalAccessor()
|
/libcore/ojluni/src/main/java/java/util/ |
D | GregorianCalendar.java | 3461 cal.setTimeInMillis(Math.addExact(Math.multiplyExact(zdt.toEpochSecond(), 1000), in from()
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | DateTimeFormatterBuilder.java | 3286 instantSecs = ldt.toEpochSecond(ZoneOffset.UTC); in parse()
|