Home
last modified time | relevance | path

Searched refs:toEpochSecond (Results 1 – 16 of 16) sorted by relevance

/libcore/ojluni/src/main/java/java/time/chrono/
DChronoZonedDateTime.java207 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()
DChronoLocalDateTime.java446 return Instant.ofEpochSecond(toEpochSecond(offset), toLocalTime().getNano()); in toInstant()
463 default long toEpochSecond(ZoneOffset offset) { in toEpochSecond() method
DAbstractChronology.java152 int cmp = Long.compare(dateTime1.toEpochSecond(), dateTime2.toEpochSecond());
DChronoZonedDateTimeImpl.java288 case INSTANT_SECONDS: return plus(newValue - toEpochSecond(), SECONDS); in with()
/libcore/luni/src/test/java/libcore/java/time/zone/
DZoneOffsetTransitionTest.java43 OffsetDateTime.of(time, offsetP1).toEpochSecond(), in test_toEpochSeconds()
44 transition.toEpochSecond()); in test_toEpochSeconds()
/libcore/ojluni/src/main/java/java/time/
DOffsetDateTime.java171 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()
DLocalTime.java1503 public long toEpochSecond(LocalDate date, ZoneOffset offset) { in toEpochSecond() method in LocalTime
/libcore/ojluni/src/main/java/java/time/zone/
DZoneOffsetTransition.java212 Ser.writeEpochSec(toEpochSecond(), out); in writeExternal()
255 public long toEpochSecond() { in toEpochSecond() method in ZoneOffsetTransition
256 return transition.toEpochSecond(offsetBefore); in toEpochSecond()
DZoneRules.java225 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/
DTestOffsetDateTime_instants.java323 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/
DTCKLocalTime.java2444 {LocalTime.of(0, 0).toEpochSecond(LocalDate.of(1970, 1, 1), OFFSET_PTWO), -7200L},
2445 {LocalTime.of(11, 30).toEpochSecond(LocalDate.of(1965, 12, 31), OFFSET_PTWO), -126282600L},
2446 {LocalTime.of(11, 30).toEpochSecond(LocalDate.of(1995, 5, 3), OFFSET_MTWO), 799507800L},
2447 {LocalTime.of(0, 0).toEpochSecond(LocalDate.of(1970, 1, 1), OFFSET_PTWO),
2449 {LocalTime.of(11, 30).toEpochSecond(LocalDate.of(1969, 12, 31), OFFSET_MTWO),
2451 {LocalTime.of(11, 30).toEpochSecond(LocalDate.of(1970, 1, 1), OFFSET_PTWO),
2452 LocalDateTime.of(1970, 1, 1, 11, 30).toEpochSecond(OFFSET_PTWO)},
DTCKZonedDateTime.java960 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);
DTCKOffsetDateTime.java633 assertEquals(test.getLong(ChronoField.INSTANT_SECONDS), test.toEpochSecond());
1288 assertEquals(a.toEpochSecond(), i);
1296 assertEquals(a.toEpochSecond(), -i);
DTCKLocalDateTime.java3014 assertEquals(a.toEpochSecond(offset), j - i * 3600);
3023 assertEquals(a.toEpochSecond(ZoneOffset.UTC), -i);
/libcore/ojluni/annotations/hiddenapi/java/time/
DOffsetDateTime.java391 public long toEpochSecond() { in toEpochSecond() method in OffsetDateTime
/libcore/ojluni/src/main/java/java/util/
DGregorianCalendar.java3461 cal.setTimeInMillis(Math.addExact(Math.multiplyExact(zdt.toEpochSecond(), 1000), in from()