Searched refs:SECONDS_PER_DAY (Results 1 – 8 of 8) sorted by relevance
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | ChronoLocalDateTimeImpl.java | 130 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/time/ |
D | LocalTime.java | 177 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; 273 int secsOfDay = (int) Math.floorMod(localSecond, SECONDS_PER_DAY); in now() 948 if (unitDur.getSeconds() > SECONDS_PER_DAY) { in truncatedTo() 1116 … int newSofd = ((int) (secondstoAdd % SECONDS_PER_DAY) + sofd + SECONDS_PER_DAY) % SECONDS_PER_DAY; in plusSeconds() 1246 return plusSeconds(-(secondsToSubtract % SECONDS_PER_DAY)); in minusSeconds()
|
D | Instant.java | 65 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()
|
D | Duration.java | 65 import static java.time.LocalTime.SECONDS_PER_DAY; 173 return create(Math.multiplyExact(days, SECONDS_PER_DAY), 0); in ofDays() 393 long daysAsSecs = parseNumber(text, dayMatch, SECONDS_PER_DAY, "days"); in parse() 692 return plus(Math.multiplyExact(amountToAdd, SECONDS_PER_DAY), 0); in plus() 727 return plus(Math.multiplyExact(daysToAdd, SECONDS_PER_DAY), 0); in plusDays() 1120 return seconds / SECONDS_PER_DAY; in toDays()
|
D | LocalDateTime.java | 72 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()
|
D | OffsetTime.java | 67 import static java.time.LocalTime.SECONDS_PER_DAY; 255 int secsOfDay = (int) Math.floorMod(localSecond, SECONDS_PER_DAY); in ofInstant()
|
D | LocalDate.java | 64 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/nio/file/attribute/ |
D | FileTime.java | 194 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()
|