Home
last modified time | relevance | path

Searched refs:SECONDS_PER_DAY (Results 1 – 8 of 8) sorted by relevance

/libcore/ojluni/src/main/java/java/time/
DDuration.java67 import static java.time.LocalTime.SECONDS_PER_DAY;
175 return create(Math.multiplyExact(days, SECONDS_PER_DAY), 0); in ofDays()
395 long daysAsSecs = parseNumber(text, dayMatch, SECONDS_PER_DAY, "days"); in parse()
694 return plus(Math.multiplyExact(amountToAdd, SECONDS_PER_DAY), 0); in plus()
729 return plus(Math.multiplyExact(daysToAdd, SECONDS_PER_DAY), 0); in plusDays()
1140 return seconds / SECONDS_PER_DAY; in toDays()
1232 return seconds / SECONDS_PER_DAY; in toDaysPart()
1351 if (unitDur.getSeconds() > LocalTime.SECONDS_PER_DAY) { in truncatedTo()
1358 long nod = (seconds % LocalTime.SECONDS_PER_DAY) * LocalTime.NANOS_PER_SECOND + nanos; in truncatedTo()
DLocalTime.java177 static final int SECONDS_PER_DAY = SECONDS_PER_HOUR * HOURS_PER_DAY; field in LocalTime
181 static final long MILLIS_PER_DAY = SECONDS_PER_DAY * 1000L;
185 static final long MICROS_PER_DAY = SECONDS_PER_DAY * 1000_000L;
359 int secsOfDay = Math.floorMod(localSecond, SECONDS_PER_DAY); in ofInstant()
971 if (unitDur.getSeconds() > SECONDS_PER_DAY) { in truncatedTo()
1139 … int newSofd = ((int) (secondstoAdd % SECONDS_PER_DAY) + sofd + SECONDS_PER_DAY) % SECONDS_PER_DAY; in plusSeconds()
1269 return plusSeconds(-(secondsToSubtract % SECONDS_PER_DAY)); in minusSeconds()
DInstant.java65 import static java.time.LocalTime.SECONDS_PER_DAY;
747 if (unitDur.getSeconds() > LocalTime.SECONDS_PER_DAY) { in truncatedTo()
754 long nod = (seconds % LocalTime.SECONDS_PER_DAY) * LocalTime.NANOS_PER_SECOND + nanos; in truncatedTo()
853 … case HALF_DAYS: return plusSeconds(Math.multiplyExact(amountToAdd, SECONDS_PER_DAY / 2)); in plus()
854 case DAYS: return plusSeconds(Math.multiplyExact(amountToAdd, SECONDS_PER_DAY)); in plus()
1149 case DAYS: return secondsUntil(end) / (SECONDS_PER_DAY); in until()
DLocalDateTime.java72 import static java.time.LocalTime.SECONDS_PER_DAY;
414 long localEpochDay = Math.floorDiv(localSecond, SECONDS_PER_DAY); in ofEpochSecond()
415 int secsOfDay = (int)Math.floorMod(localSecond, SECONDS_PER_DAY); in ofEpochSecond()
1552 seconds / SECONDS_PER_DAY + // max/24*60*60 in plusWithOverflow()
1557 (seconds % SECONDS_PER_DAY) * NANOS_PER_SECOND + // max 86400000000000 in plusWithOverflow()
1705 amount = Math.multiplyExact(amount, SECONDS_PER_DAY); in until()
DOffsetTime.java67 import static java.time.LocalTime.SECONDS_PER_DAY;
255 int secsOfDay = (int) Math.floorMod(localSecond, SECONDS_PER_DAY); in ofInstant()
DLocalDate.java64 import static java.time.LocalTime.SECONDS_PER_DAY;
221 long epochDay = Math.floorDiv(epochSec, SECONDS_PER_DAY); in now()
/libcore/ojluni/src/main/java/java/time/chrono/
DChronoLocalDateTimeImpl.java130 static final int SECONDS_PER_DAY = SECONDS_PER_HOUR * HOURS_PER_DAY; field in ChronoLocalDateTimeImpl
134 static final long MILLIS_PER_DAY = SECONDS_PER_DAY * 1000L;
138 static final long MICROS_PER_DAY = SECONDS_PER_DAY * 1000_000L;
348 seconds / SECONDS_PER_DAY + // max/24*60*60 in plusWithOverflow()
352 (seconds % SECONDS_PER_DAY) * NANOS_PER_SECOND + // max 86400000000000 in plusWithOverflow()
382 case SECONDS: amount = Math.multiplyExact(amount, SECONDS_PER_DAY); break; in until()
/libcore/ojluni/src/main/java/java/nio/file/attribute/
DFileTime.java194 private static final long SECONDS_PER_DAY = SECONDS_PER_HOUR * HOURS_PER_DAY; field in FileTime
236 secs = scale(value, SECONDS_PER_DAY, in toInstant()
237 Long.MAX_VALUE/SECONDS_PER_DAY); in toInstant()