Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/java/java/time/zone/
DSer.java250 static void writeEpochSec(long epochSec, DataOutput out) throws IOException { in writeEpochSec() argument
251 …if (epochSec >= -4575744000L && epochSec < 10413792000L && epochSec % 900 == 0) { // quarter hour… in writeEpochSec()
252 int store = (int) ((epochSec + 4575744000L) / 900); in writeEpochSec()
258 out.writeLong(epochSec); in writeEpochSec()
DZoneRules.java483 long epochSec = instant.getEpochSecond(); in getOffset() local
486 epochSec > savingsInstantTransitions[savingsInstantTransitions.length - 1]) { in getOffset()
487 int year = findYear(epochSec, wallOffsets[wallOffsets.length - 1]); in getOffset()
492 if (epochSec < trans.toEpochSecond()) { in getOffset()
500 int index = Arrays.binarySearch(savingsInstantTransitions, epochSec); in getOffset()
754 long epochSec = instant.getEpochSecond(); in getStandardOffset() local
755 int index = Arrays.binarySearch(standardTransitions, epochSec); in getStandardOffset()
840 long epochSec = instant.getEpochSecond(); in nextTransition() local
842 if (epochSec >= savingsInstantTransitions[savingsInstantTransitions.length - 1]) { in nextTransition()
847 int year = findYear(epochSec, wallOffsets[wallOffsets.length - 1]); in nextTransition()
[all …]
/libcore/ojluni/src/main/java/java/time/
DInstant.java919 long epochSec = Math.addExact(seconds, secondsToAdd); in plus() local
920 epochSec = Math.addExact(epochSec, nanosToAdd / NANOS_PER_SECOND); in plus()
923 return ofEpochSecond(epochSec, nanoAdjustment); in plus()
DDuration.java809 long epochSec = Math.addExact(seconds, secondsToAdd); in plus() local
810 epochSec = Math.addExact(epochSec, nanosToAdd / NANOS_PER_SECOND); in plus()
813 return ofSeconds(epochSec, nanoAdjustment); in plus()
DLocalDate.java220 long epochSec = now.getEpochSecond() + offset.getTotalSeconds(); // overflow caught later in now() local
221 long epochDay = Math.floorDiv(epochSec, SECONDS_PER_DAY); in now()