/libcore/ojluni/src/main/java/java/time/ |
D | ZoneOffset.java | 205 final int hours, minutes, seconds; in of() local 210 hours = parseNumber(offsetId, 1, false); in of() 215 hours = parseNumber(offsetId, 1, false); in of() 220 hours = parseNumber(offsetId, 1, false); in of() 225 hours = parseNumber(offsetId, 1, false); in of() 230 hours = parseNumber(offsetId, 1, false); in of() 242 return ofHoursMinutesSeconds(-hours, -minutes, -seconds); in of() 244 return ofHoursMinutesSeconds(hours, minutes, seconds); in of() 276 public static ZoneOffset ofHours(int hours) { in ofHours() argument 277 return ofHoursMinutesSeconds(hours, 0, 0); in ofHours() [all …]
|
D | LocalDateTime.java | 1294 public LocalDateTime plusHours(long hours) { in plusHours() argument 1295 return plusWithOverflow(date, hours, 0, 0, 0, 1); in plusHours() 1489 public LocalDateTime minusHours(long hours) { in minusHours() argument 1490 return plusWithOverflow(date, hours, 0, 0, 0, -1); in minusHours() 1546 …private LocalDateTime plusWithOverflow(LocalDate newDate, long hours, long minutes, long seconds, … in plusWithOverflow() argument 1548 if ((hours | minutes | seconds | nanos) == 0) { in plusWithOverflow() 1554 hours / HOURS_PER_DAY; // max/24 in plusWithOverflow() 1559 (hours % HOURS_PER_DAY) * NANOS_PER_HOUR; // max 86400000000000 in plusWithOverflow()
|
D | LocalTime.java | 353 int hours = (int) (secondOfDay / SECONDS_PER_HOUR); in ofSecondOfDay() local 354 secondOfDay -= hours * SECONDS_PER_HOUR; in ofSecondOfDay() 357 return create(hours, minutes, (int) secondOfDay, 0); in ofSecondOfDay() 371 int hours = (int) (nanoOfDay / NANOS_PER_HOUR); in ofNanoOfDay() local 372 nanoOfDay -= hours * NANOS_PER_HOUR; in ofNanoOfDay() 377 return create(hours, minutes, seconds, (int) nanoOfDay); in ofNanoOfDay()
|
D | Duration.java | 187 public static Duration ofHours(long hours) { in ofHours() argument 188 return create(Math.multiplyExact(hours, SECONDS_PER_HOUR), 0); in ofHours() 1264 long hours = seconds / SECONDS_PER_HOUR; in toString() local 1269 if (hours != 0) { in toString() 1270 buf.append(hours).append('H'); in toString()
|
D | OffsetDateTime.java | 1285 public OffsetDateTime plusHours(long hours) { in plusHours() argument 1286 return with(dateTime.plusHours(hours), offset); in plusHours() 1474 public OffsetDateTime minusHours(long hours) { in minusHours() argument 1475 … return (hours == Long.MIN_VALUE ? plusHours(Long.MAX_VALUE).plusHours(1) : plusHours(-hours)); in minusHours()
|
D | OffsetTime.java | 891 public OffsetTime plusHours(long hours) { in plusHours() argument 892 return with(time.plusHours(hours), offset); in plusHours() 1002 public OffsetTime minusHours(long hours) { in minusHours() argument 1003 return with(time.minusHours(hours), offset); in minusHours()
|
D | ZonedDateTime.java | 1718 public ZonedDateTime plusHours(long hours) { in plusHours() argument 1719 return resolveInstant(dateTime.plusHours(hours)); in plusHours() 1959 public ZonedDateTime minusHours(long hours) { in minusHours() argument 1960 … return (hours == Long.MIN_VALUE ? plusHours(Long.MAX_VALUE).plusHours(1) : plusHours(-hours)); in minusHours()
|
/libcore/ojluni/src/main/java/sun/util/calendar/ |
D | CalendarDate.java | 74 private int hours; field in CalendarDate 219 return hours; in getHours() 222 public CalendarDate setHours(int hours) { in setHours() argument 223 if (this.hours != hours) { in setHours() 224 this.hours = hours; in setHours() 232 hours += n; in addHours() 319 public CalendarDate setTimeOfDay(int hours, int minutes, int seconds, int millis) { in setTimeOfDay() argument 320 setHours(hours); in setTimeOfDay() 327 public CalendarDate addTimeOfDay(int hours, int minutes, int seconds, int millis) { in addTimeOfDay() argument 328 addHours(hours); in addTimeOfDay() [all …]
|
D | ImmutableGregorianDate.java | 101 public CalendarDate setHours(int hours) { in setHours() argument 157 public CalendarDate setTimeOfDay(int hours, int minutes, int seconds, int millis) { in setTimeOfDay() argument 161 public CalendarDate addTimeOfDay(int hours, int minutes, int seconds, int millis) { in addTimeOfDay() argument
|
D | AbstractCalendar.java | 249 int hours = time / HOUR_IN_MILLIS; in setTimeOfDay() local 255 cdate.setHours(hours); in setTimeOfDay() 260 if (hours < 24 && normalizedState) { in setTimeOfDay()
|
/libcore/luni/src/main/java/javax/xml/datatype/ |
D | DatatypeFactory.java | 236 final BigInteger hours, in newDuration() argument 273 final int hours, in newDuration() argument 287 …BigInteger realHours = (hours != DatatypeConstants.FIELD_UNDEFINED) ? BigInteger.valueOf((long) ho… in newDuration() 413 int hours = (int) (val % 24L); // 24 hours per day in newDurationDayTime() local 417 DatatypeConstants.FIELD_UNDEFINED, (int) days, hours, minutes, seconds); in newDurationDayTime() 421 BigInteger.valueOf(days), BigInteger.valueOf(hours), in newDurationDayTime() 430 BigInteger hours = BigInteger.valueOf(val % 24L); // 24 hours per day in newDurationDayTime() local 433 return newDuration(isPositive, null, null, days, hours, minutes, seconds); in newDurationDayTime() 923 final int hours, in newXMLGregorianCalendarTime() argument 932 hours, in newXMLGregorianCalendarTime() [all …]
|
D | Duration.java | 907 BigInteger hours = (BigInteger) getField(DatatypeConstants.HOURS); in toString() local 910 if (hours != null || minutes != null || seconds != null) { in toString() 912 if (hours != null) { in toString() 913 buf.append(hours).append('H'); in toString()
|
/libcore/ojluni/annotations/hiddenapi/sun/util/calendar/ |
D | CalendarDate.java | 105 public sun.util.calendar.CalendarDate setHours(int hours) { in setHours() argument 167 int hours, int minutes, int seconds, int millis) { in setTimeOfDay() argument 172 int hours, int minutes, int seconds, int millis) { in addTimeOfDay() argument 268 private int hours; field in CalendarDate
|
D | ImmutableGregorianDate.java | 95 public sun.util.calendar.CalendarDate setHours(int hours) { in setHours() argument 152 int hours, int minutes, int seconds, int millis) { in setTimeOfDay() argument 157 int hours, int minutes, int seconds, int millis) { in addTimeOfDay() argument
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | ChronoLocalDateTimeImpl.java | 325 private ChronoLocalDateTimeImpl<D> plusHours(long hours) { in plusHours() argument 326 return plusWithOverflow(date, hours, 0, 0, 0); in plusHours() 342 …private ChronoLocalDateTimeImpl<D> plusWithOverflow(D newDate, long hours, long minutes, long seco… in plusWithOverflow() argument 344 if ((hours | minutes | seconds | nanos) == 0) { in plusWithOverflow() 350 hours / HOURS_PER_DAY; // max/24 in plusWithOverflow() 354 (hours % HOURS_PER_DAY) * NANOS_PER_HOUR; // max 86400000000000 in plusWithOverflow()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKZoneOffset.java | 640 private void doTestOffset(ZoneOffset offset, int hours, int minutes, int seconds) { 641 assertEquals(offset.getTotalSeconds(), hours * 60 * 60 + minutes * 60 + seconds); 643 if (hours == 0 && minutes == 0 && seconds == 0) { 646 String str = (hours < 0 || minutes < 0 || seconds < 0) ? "-" : "+"; 647 str += Integer.toString(Math.abs(hours) + 100).substring(1); 657 assertEquals(offset, ZoneOffset.ofHoursMinutesSeconds(hours, minutes, seconds)); 659 assertEquals(offset, ZoneOffset.ofHoursMinutes(hours, minutes)); 661 assertEquals(offset, ZoneOffset.ofHours(hours));
|
D | TCKDuration.java | 1212 public void plusHours_long(long hours, long amount, long expectedHours) { in plusHours_long() argument 1213 Duration t = Duration.ofHours(hours); in plusHours_long() 1831 public void minusHours_long(long hours, long amount, long expectedHours) { in minusHours_long() argument 1832 Duration t = Duration.ofHours(hours); in minusHours_long()
|
D | TCKLocalTime.java | 1520 int hours = (int) (Long.MAX_VALUE % 24L); in test_plusHours_big() local 1521 assertEquals(t, LocalTime.of(2, 30).plusHours(hours)); in test_plusHours_big() 1946 int hours = (int) (Long.MAX_VALUE % 24L); 1947 assertEquals(t, LocalTime.of(2, 30).minusHours(hours));
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | GregorianCalendarTest.java | 41 Calendar.MARCH, 9, 0, hours(2), 42 Calendar.NOVEMBER, 2, 0, hours(2), 43 hours(1)); 493 private static int hours(int count) { in hours() method in GregorianCalendarTest
|
/libcore/ojluni/annotations/hiddenapi/java/time/ |
D | OffsetDateTime.java | 297 public java.time.OffsetDateTime plusHours(long hours) { in plusHours() argument 338 public java.time.OffsetDateTime minusHours(long hours) { in minusHours() argument
|
D | Duration.java | 81 public static java.time.Duration ofHours(long hours) { in ofHours() argument
|
/libcore/ojluni/src/main/java/java/text/ |
D | SimpleDateFormat.java | 2186 int hours; in subParseNumericZone() local 2190 hours = c - '0'; in subParseNumericZone() 2193 hours = hours * 10 + (c - '0'); in subParseNumericZone() 2206 if (hours > 23) { in subParseNumericZone() 2247 minutes += hours * 60; in subParseNumericZone()
|
/libcore/ojluni/src/main/java/java/util/ |
D | Date.java | 829 public void setHours(int hours) { in setHours() argument 830 getCalendarDate().setHours(hours); in setHours()
|
D | GregorianCalendar.java | 2455 int hours = timeOfDay / ONE_HOUR; in computeFields() local 2456 internalSet(HOUR_OF_DAY, hours); in computeFields() 2457 internalSet(AM_PM, hours / 12); // Assume AM == 0 in computeFields() 2458 internalSet(HOUR, hours % 12); in computeFields()
|
D | JapaneseImperialCalendar.java | 1667 int hours = timeOfDay / ONE_HOUR; in computeFields() local 1668 internalSet(HOUR_OF_DAY, hours); in computeFields() 1669 internalSet(AM_PM, hours / 12); // Assume AM == 0 in computeFields() 1670 internalSet(HOUR, hours % 12); in computeFields()
|