Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/java/java/time/zone/
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.java811 long epochSec = Math.addExact(seconds, secondsToAdd); in plus() local
812 epochSec = Math.addExact(epochSec, nanosToAdd / NANOS_PER_SECOND); in plus()
815 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()