Searched defs:plusHours (Results 1 - 7 of 7) sorted by relevance

/libcore/ojluni/src/main/java/java/time/chrono/
H A DChronoLocalDateTimeImpl.java313 case HOURS: return plusHours(amountToAdd);
314 case HALF_DAYS: return plusDays(amountToAdd / 256).plusHours((amountToAdd % 256) * 12); // no overflow (256 is multiple of 2)
325 private ChronoLocalDateTimeImpl<D> plusHours(long hours) { method in class:ChronoLocalDateTimeImpl
/libcore/ojluni/src/main/java/java/time/
H A DDuration.java739 public Duration plusHours(long hoursToAdd) { method in class:Duration
883 return (hoursToSubtract == Long.MIN_VALUE ? plusHours(Long.MAX_VALUE).plusHours(1) : plusHours(-hoursToSubtract));
H A DLocalTime.java842 case HOUR_OF_AMPM: return plusHours(newValue - (hour % 12));
843 case CLOCK_HOUR_OF_AMPM: return plusHours((newValue == 12 ? 0 : newValue) - (hour % 12));
846 case AMPM_OF_DAY: return plusHours((newValue - (hour / 12)) * 12);
1014 * This is equivalent to {@link #plusHours(long)}.
1017 * This is equivalent to {@link #plusHours(long)} with the amount
1046 case HOURS: return plusHours(amountToAdd);
1047 case HALF_DAYS: return plusHours((amountToAdd % 2) * 12);
1066 public LocalTime plusHours(long hoursToAdd) { method in class:LocalTime
1216 return plusHours(-(hoursToSubtract % HOURS_PER_DAY));
H A DOffsetTime.java891 public OffsetTime plusHours(long hours) { method in class:OffsetTime
892 return with(time.plusHours(hours), offset);
H A DLocalDateTime.java1185 case HOURS: return plusHours(amountToAdd);
1186 case HALF_DAYS: return plusDays(amountToAdd / 256).plusHours((amountToAdd % 256) * 12); // no overflow (256 is multiple of 2)
1294 public LocalDateTime plusHours(long hours) { method in class:LocalDateTime
H A DOffsetDateTime.java1285 public OffsetDateTime plusHours(long hours) { method in class:OffsetDateTime
1286 return with(dateTime.plusHours(hours), offset);
1475 return (hours == Long.MIN_VALUE ? plusHours(Long.MAX_VALUE).plusHours(1) : plusHours(-hours));
H A DZonedDateTime.java1718 public ZonedDateTime plusHours(long hours) { method in class:ZonedDateTime
1719 return resolveInstant(dateTime.plusHours(hours));
1960 return (hours == Long.MIN_VALUE ? plusHours(Long.MAX_VALUE).plusHours(1) : plusHours(-hours));

Completed in 149 milliseconds