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;
176 return create(Math.multiplyExact(days, SECONDS_PER_DAY), 0); in ofDays()
396 long daysAsSecs = parseNumber(text, dayMatch, SECONDS_PER_DAY, "days"); in parse()
695 return plus(Math.multiplyExact(amountToAdd, SECONDS_PER_DAY), 0); in plus()
730 return plus(Math.multiplyExact(daysToAdd, SECONDS_PER_DAY), 0); in plusDays()
1141 return seconds / SECONDS_PER_DAY; in toDays()
1233 return seconds / SECONDS_PER_DAY; in toDaysPart()
1352 if (unitDur.getSeconds() > LocalTime.SECONDS_PER_DAY) { in truncatedTo()
1359 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;
360 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;
746 if (unitDur.getSeconds() > LocalTime.SECONDS_PER_DAY) { in truncatedTo()
753 long nod = (seconds % LocalTime.SECONDS_PER_DAY) * LocalTime.NANOS_PER_SECOND + nanos; in truncatedTo()
852 … case HALF_DAYS: return plusSeconds(Math.multiplyExact(amountToAdd, SECONDS_PER_DAY / 2)); in plus()
853 case DAYS: return plusSeconds(Math.multiplyExact(amountToAdd, SECONDS_PER_DAY)); in plus()
1147 case DAYS: return secondsUntil(end) / (SECONDS_PER_DAY); in until()
DLocalDateTime.java72 import static java.time.LocalTime.SECONDS_PER_DAY;
415 long localEpochDay = Math.floorDiv(localSecond, SECONDS_PER_DAY); in ofEpochSecond()
416 int secsOfDay = Math.floorMod(localSecond, SECONDS_PER_DAY); in ofEpochSecond()
1545 seconds / SECONDS_PER_DAY + // max/24*60*60 in plusWithOverflow()
1550 (seconds % SECONDS_PER_DAY) * NANOS_PER_SECOND + // max 86400000000000 in plusWithOverflow()
1698 amount = Math.multiplyExact(amount, SECONDS_PER_DAY); in until()
DOffsetTime.java67 import static java.time.LocalTime.SECONDS_PER_DAY;
256 int secsOfDay = Math.floorMod(localSecond, SECONDS_PER_DAY); in ofInstant()
DLocalDate.java64 import static java.time.LocalTime.SECONDS_PER_DAY;
321 long localEpochDay = Math.floorDiv(localSecond, SECONDS_PER_DAY); in ofInstant()
1986 long secs = toEpochDay() * SECONDS_PER_DAY + time.toSecondOfDay(); in toEpochSecond()
/libcore/ojluni/src/main/java/java/time/chrono/
DChronoLocalDateTimeImpl.java131 static final int SECONDS_PER_DAY = SECONDS_PER_HOUR * HOURS_PER_DAY; field in ChronoLocalDateTimeImpl
135 static final long MILLIS_PER_DAY = SECONDS_PER_DAY * 1000L;
139 static final long MICROS_PER_DAY = SECONDS_PER_DAY * 1000_000L;
343 seconds / SECONDS_PER_DAY + // max/24*60*60 in plusWithOverflow()
347 (seconds % SECONDS_PER_DAY) * NANOS_PER_SECOND + // max 86400000000000 in plusWithOverflow()
377 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()