Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/java/java/time/
DDuration.java66 import static java.time.LocalTime.SECONDS_PER_HOUR;
188 return create(Math.multiplyExact(hours, SECONDS_PER_HOUR), 0); in ofHours()
394 long hoursAsSecs = parseNumber(text, hourMatch, SECONDS_PER_HOUR, "hours"); in parse()
740 return plus(Math.multiplyExact(hoursToAdd, SECONDS_PER_HOUR), 0); in plusHours()
1134 return seconds / SECONDS_PER_HOUR; in toHours()
1264 long hours = seconds / SECONDS_PER_HOUR; in toString()
1265 int minutes = (int) ((seconds % SECONDS_PER_HOUR) / SECONDS_PER_MINUTE); in toString()
DZoneOffset.java65 import static java.time.LocalTime.SECONDS_PER_HOUR;
136 private static final int MAX_SECONDS = 18 * SECONDS_PER_HOUR;
394 return hours * SECONDS_PER_HOUR + minutes * SECONDS_PER_MINUTE + seconds; in totalSeconds()
444 int absHours = absTotalSeconds / SECONDS_PER_HOUR; in buildId()
DLocalTime.java173 static final int SECONDS_PER_HOUR = SECONDS_PER_MINUTE * MINUTES_PER_HOUR; field in LocalTime
177 static final int SECONDS_PER_DAY = SECONDS_PER_HOUR * HOURS_PER_DAY;
353 int hours = (int) (secondOfDay / SECONDS_PER_HOUR); in ofSecondOfDay()
354 secondOfDay -= hours * SECONDS_PER_HOUR; in ofSecondOfDay()
1114 int sofd = hour * SECONDS_PER_HOUR + in plusSeconds()
1120 int newHour = newSofd / SECONDS_PER_HOUR; in plusSeconds()
1445 int total = hour * SECONDS_PER_HOUR; in toSecondOfDay()
DInstant.java66 import static java.time.LocalTime.SECONDS_PER_HOUR;
852 case HOURS: return plusSeconds(Math.multiplyExact(amountToAdd, SECONDS_PER_HOUR)); in plus()
1147 case HOURS: return secondsUntil(end) / SECONDS_PER_HOUR; in until()
1148 case HALF_DAYS: return secondsUntil(end) / (12 * SECONDS_PER_HOUR); in until()
/libcore/ojluni/src/main/java/java/nio/file/attribute/
DFileTime.java193 private static final long SECONDS_PER_HOUR = SECONDS_PER_MINUTE * MINUTES_PER_HOUR; field in FileTime
194 private static final long SECONDS_PER_DAY = SECONDS_PER_HOUR * HOURS_PER_DAY;
240 secs = scale(value, SECONDS_PER_HOUR, in toInstant()
241 Long.MAX_VALUE/SECONDS_PER_HOUR); in toInstant()
/libcore/ojluni/src/main/java/java/time/chrono/
DChronoLocalDateTimeImpl.java126 static final int SECONDS_PER_HOUR = SECONDS_PER_MINUTE * MINUTES_PER_HOUR; field in ChronoLocalDateTimeImpl
130 static final int SECONDS_PER_DAY = SECONDS_PER_HOUR * HOURS_PER_DAY;