Home
last modified time | relevance | path

Searched refs:NANOS_PER_DAY (Results 1 – 6 of 6) sorted by relevance

/libcore/ojluni/src/test/java/time/test/java/time/
DTestLocalTime.java78 static final long NANOS_PER_DAY = 24 * 60 * NANOS_PER_MINUTE; field in TestLocalTime
200 diff = Math.floorMod(NANOS_PER_DAY + diff, NANOS_PER_DAY); in now()
/libcore/ojluni/src/main/java/java/time/chrono/
DChronoLocalDateTimeImpl.java154 static final long NANOS_PER_DAY = NANOS_PER_HOUR * HOURS_PER_DAY; field in ChronoLocalDateTimeImpl
347 long totDays = nanos / NANOS_PER_DAY + // max/24*60*60*1B in plusWithOverflow()
351 long totNanos = nanos % NANOS_PER_DAY + // max 86400000000000 in plusWithOverflow()
357 totDays += Math.floorDiv(totNanos, NANOS_PER_DAY); in plusWithOverflow()
358 long newNoD = Math.floorMod(totNanos, NANOS_PER_DAY); in plusWithOverflow()
379 case NANOS: amount = Math.multiplyExact(amount, NANOS_PER_DAY); break; in until()
/libcore/ojluni/src/main/java/java/time/
DLocalDateTime.java68 import static java.time.LocalTime.NANOS_PER_DAY;
1551 long totDays = nanos / NANOS_PER_DAY + // max/24*60*60*1B in plusWithOverflow()
1556 long totNanos = nanos % NANOS_PER_DAY + // max 86400000000000 in plusWithOverflow()
1562 totDays += Math.floorDiv(totNanos, NANOS_PER_DAY); in plusWithOverflow()
1563 long newNoD = Math.floorMod(totNanos, NANOS_PER_DAY); in plusWithOverflow()
1687 timePart += NANOS_PER_DAY; // safe in until()
1690 timePart -= NANOS_PER_DAY; // safe in until()
1694 amount = Math.multiplyExact(amount, NANOS_PER_DAY); in until()
DLocalTime.java205 static final long NANOS_PER_DAY = NANOS_PER_HOUR * HOURS_PER_DAY; field in LocalTime
975 if ((NANOS_PER_DAY % dur) != 0) { in truncatedTo()
1165 long newNofd = ((nanosToAdd % NANOS_PER_DAY) + nofd + NANOS_PER_DAY) % NANOS_PER_DAY; in plusNanos()
1284 return plusNanos(-(nanosToSubtract % NANOS_PER_DAY)); in minusNanos()
DInstant.java751 if ((LocalTime.NANOS_PER_DAY % dur) != 0) { in truncatedTo()
DDuration.java1355 if ((LocalTime.NANOS_PER_DAY % dur) != 0) { in truncatedTo()