/libcore/ojluni/src/main/java/java/time/zone/ |
D | ZoneOffsetTransition.java | 109 private final long epochSecond; field in ZoneOffsetTransition 160 this.epochSecond = transition.toEpochSecond(offsetBefore); in ZoneOffsetTransition() 173 ZoneOffsetTransition(long epochSecond, ZoneOffset offsetBefore, ZoneOffset offsetAfter) { in ZoneOffsetTransition() argument 174 this.epochSecond = epochSecond; in ZoneOffsetTransition() 175 this.transition = LocalDateTime.ofEpochSecond(epochSecond, 0, offsetBefore); in ZoneOffsetTransition() 219 Ser.writeEpochSec(epochSecond, out); in writeExternal() 232 long epochSecond = Ser.readEpochSec(in); in readExternal() local 238 return new ZoneOffsetTransition(epochSecond, before, after); in readExternal() 254 return Instant.ofEpochSecond(epochSecond); in getInstant() 263 return epochSecond; in toEpochSecond() [all …]
|
D | ZoneRules.java | 949 private int findYear(long epochSecond, ZoneOffset offset) { in findYear() argument 950 long localSecond = epochSecond + offset.getTotalSeconds(); in findYear()
|
/libcore/ojluni/src/main/java/java/time/ |
D | Instant.java | 298 public static Instant ofEpochSecond(long epochSecond) { in ofEpochSecond() argument 299 return create(epochSecond, 0); in ofEpochSecond() 322 public static Instant ofEpochSecond(long epochSecond, long nanoAdjustment) { in ofEpochSecond() argument 323 long secs = Math.addExact(epochSecond, Math.floorDiv(nanoAdjustment, NANOS_PER_SECOND)); in ofEpochSecond() 418 private Instant(long epochSecond, int nanos) { in Instant() argument 420 this.seconds = epochSecond; in Instant()
|
D | ZonedDateTime.java | 447 private static ZonedDateTime create(long epochSecond, int nanoOfSecond, ZoneId zone) { in create() argument 449 …Instant instant = Instant.ofEpochSecond(epochSecond, nanoOfSecond); // TODO: rules should be quer… in create() 451 LocalDateTime ldt = LocalDateTime.ofEpochSecond(epochSecond, nanoOfSecond, offset); in create() 551 long epochSecond = temporal.getLong(INSTANT_SECONDS); in from() local 553 return create(epochSecond, nanoOfSecond, zone); in from()
|
D | LocalDateTime.java | 411 … public static LocalDateTime ofEpochSecond(long epochSecond, int nanoOfSecond, ZoneOffset offset) { in ofEpochSecond() argument 414 long localSecond = epochSecond + offset.getTotalSeconds(); // overflow caught later in ofEpochSecond()
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
D | TCKIsoChronology.java | 710 assertEquals(IsoChronology.INSTANCE.epochSecond(y, m, d, h, min, s, offset), in test_epochSecond_1() 716 assertEquals(IsoChronology.INSTANCE.epochSecond(2008, 3, 3, 1, 2, 2, OFFSET_P0100), in test_epochSecond_2() 718 assertEquals(IsoChronology.INSTANCE.epochSecond(1969, 3, 3, 1, 2, 2, OFFSET_P0100), in test_epochSecond_2() 724 …assertEquals(IsoChronology.INSTANCE.epochSecond(Year.MAX_VALUE, 12, 31, 23, 59, 59, ZoneOffset.MIN… in test_epochSecond_max() 730 … assertEquals(IsoChronology.INSTANCE.epochSecond(Year.MIN_VALUE, 1, 1, 0, 0, 0, ZoneOffset.MAX), in test_epochSecond_min() 746 IsoChronology.INSTANCE.epochSecond(y, m, d, h, min, s, offset); in test_epochSecond_bad() 773 assertEquals(IsoChronology.INSTANCE.epochSecond(era, y, m, d, h, min, s, offset), in test_era_epochSecond_1() 780 … assertEquals(IsoChronology.INSTANCE.epochSecond(IsoEra.CE, 2008, 3, 3, 1, 2, 2, OFFSET_P0100), in test_era_epochSecond_2() 782 … assertEquals(IsoChronology.INSTANCE.epochSecond(IsoEra.CE, 1969, 3, 3, 1, 2, 2, OFFSET_P0100), in test_era_epochSecond_2() 788 IsoChronology.INSTANCE.epochSecond(HijrahEra.AH, 2009, 2, 29, 1, 2, 2, OFFSET_P0100); in test_era_epochSecond_bad()
|
D | TCKChronology.java | 385 assertEquals(chrono.epochSecond(y, m, d, h, min, s, offset), in test_epochSecond() 413 assertEquals(chrono.epochSecond(era, y, m, d, h, min, s, offset), in test_epochSecond() 433 chrono.epochSecond(y, m, d, h, min, s, offset); in test_bad_epochSecond()
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | Chronology.java | 739 public default long epochSecond(int prolepticYear, int month, int dayOfMonth, in epochSecond() method 768 public default long epochSecond(Era era, int yearOfEra, int month, int dayOfMonth, in epochSecond() method 771 …return epochSecond(prolepticYear(era, yearOfEra), month, dayOfMonth, hour, minute, second, zoneOff… in epochSecond()
|
D | IsoChronology.java | 292 public long epochSecond(int prolepticYear, int month, int dayOfMonth, in epochSecond() method in IsoChronology
|
/libcore/api/ |
D | current.txt | 12450 method public default long epochSecond(int, int, int, int, int, int, java.time.ZoneOffset); 12451 …method public default long epochSecond(java.time.chrono.Era, int, int, int, int, int, int, java.ti… 12549 method public long epochSecond(int, int, int, int, int, int, java.time.ZoneOffset);
|