Home | History | Annotate | Download | only in time

Lines Matching refs:hours

143     private static final LocalTime[] HOURS = new LocalTime[24];
145 for (int i = 0; i < HOURS.length; i++) {
146 HOURS[i] = new LocalTime(i, 0, 0, 0);
148 MIDNIGHT = HOURS[0];
149 NOON = HOURS[12];
150 MIN = HOURS[0];
155 * Hours per day.
292 return HOURS[hour]; // for performance
313 return HOURS[hour]; // for performance
353 int hours = (int) (secondOfDay / SECONDS_PER_HOUR);
354 secondOfDay -= hours * SECONDS_PER_HOUR;
357 return create(hours, minutes, (int) secondOfDay, 0);
371 int hours = (int) (nanoOfDay / NANOS_PER_HOUR);
372 nanoOfDay -= hours * NANOS_PER_HOUR;
377 return create(hours, minutes, seconds, (int) nanoOfDay);
452 return HOURS[hour];
533 * <li>{@code HOURS}
1012 * <li>{@code HOURS} -
1013 * Returns a {@code LocalTime} with the specified number of hours added.
1046 case HOURS: return plusHours(amountToAdd);
1056 * Returns a copy of this {@code LocalTime} with the specified number of hours added.
1058 * This adds the specified number of hours to this time, returning a new time.
1063 * @param hoursToAdd the hours to add, may be negative
1064 * @return a {@code LocalTime} based on this time with the hours added, not null
1205 * Returns a copy of this {@code LocalTime} with the specified number of hours subtracted.
1207 * This subtracts the specified number of hours from this time, returning a new time.
1212 * @param hoursToSubtract the hours to subtract, may be negative
1213 * @return a {@code LocalTime} based on this time with the hours subtracted, not null
1339 * For example, the amount in hours between two times can be calculated
1340 * using {@code startTime.until(endTime, HOURS)}.
1344 * For example, the amount in hours between 11:30 and 13:29 will only
1345 * be one hour as it is one minute short of two hours.
1359 * {@code MINUTES}, {@code HOURS} and {@code HALF_DAYS} are supported.
1388 case HOURS: return nanosUntil / NANOS_PER_HOUR;