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()
DZonedDateTime.java433 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/
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/
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/src/test/java/time/tck/java/time/chrono/
DTCKIsoChronology.java242 … 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/
DGregorianCalendar.java3461 cal.setTimeInMillis(Math.addExact(Math.multiplyExact(zdt.toEpochSecond(), 1000), in from()
/libcore/ojluni/src/main/java/java/time/format/
DDateTimeFormatterBuilder.java3286 instantSecs = ldt.toEpochSecond(ZoneOffset.UTC); in parse()