Home
last modified time | relevance | path

Searched refs:epochSecond (Results 1 – 5 of 5) sorted by relevance

/libcore/ojluni/src/main/java/java/time/zone/
DZoneOffsetTransition.java167 ZoneOffsetTransition(long epochSecond, ZoneOffset offsetBefore, ZoneOffset offsetAfter) { in ZoneOffsetTransition() argument
168 this.transition = LocalDateTime.ofEpochSecond(epochSecond, 0, offsetBefore); in ZoneOffsetTransition()
225 long epochSecond = Ser.readEpochSec(in); in readExternal() local
231 return new ZoneOffsetTransition(epochSecond, before, after); in readExternal()
DZoneRules.java924 private int findYear(long epochSecond, ZoneOffset offset) { in findYear() argument
926 long localSecond = epochSecond + offset.getTotalSeconds(); in findYear()
/libcore/ojluni/src/main/java/java/time/
DInstant.java297 public static Instant ofEpochSecond(long epochSecond) { in ofEpochSecond() argument
298 return create(epochSecond, 0); in ofEpochSecond()
321 public static Instant ofEpochSecond(long epochSecond, long nanoAdjustment) { in ofEpochSecond() argument
322 long secs = Math.addExact(epochSecond, Math.floorDiv(nanoAdjustment, NANOS_PER_SECOND)); in ofEpochSecond()
417 private Instant(long epochSecond, int nanos) { in Instant() argument
419 this.seconds = epochSecond; in Instant()
DZonedDateTime.java446 private static ZonedDateTime create(long epochSecond, int nanoOfSecond, ZoneId zone) { in create() argument
448 …Instant instant = Instant.ofEpochSecond(epochSecond, nanoOfSecond); // TODO: rules should be quer… in create()
450 LocalDateTime ldt = LocalDateTime.ofEpochSecond(epochSecond, nanoOfSecond, offset); in create()
549 long epochSecond = temporal.getLong(INSTANT_SECONDS); in from() local
551 return create(epochSecond, nanoOfSecond, zone); in from()
DLocalDateTime.java410 … public static LocalDateTime ofEpochSecond(long epochSecond, int nanoOfSecond, ZoneOffset offset) { in ofEpochSecond() argument
413 long localSecond = epochSecond + offset.getTotalSeconds(); // overflow caught later in ofEpochSecond()