Home
last modified time | relevance | path

Searched refs:minutes (Results 1 – 25 of 26) sorted by relevance

12

/libcore/ojluni/src/main/java/java/time/
DZoneOffset.java206 final int hours, minutes, seconds; in of() local
212 minutes = 0; in of()
217 minutes = parseNumber(offsetId, 3, false); in of()
222 minutes = parseNumber(offsetId, 4, true); in of()
227 minutes = parseNumber(offsetId, 3, false); in of()
232 minutes = parseNumber(offsetId, 4, true); in of()
243 return ofHoursMinutesSeconds(-hours, -minutes, -seconds); in of()
245 return ofHoursMinutesSeconds(hours, minutes, seconds); in of()
294 public static ZoneOffset ofHoursMinutes(int hours, int minutes) { in ofHoursMinutes() argument
295 return ofHoursMinutesSeconds(hours, minutes, 0); in ofHoursMinutes()
[all …]
DLocalDateTime.java1301 public LocalDateTime plusMinutes(long minutes) { in plusMinutes() argument
1302 return plusWithOverflow(date, 0, minutes, 0, 0, 1); in plusMinutes()
1495 public LocalDateTime minusMinutes(long minutes) { in minusMinutes() argument
1496 return plusWithOverflow(date, 0, minutes, 0, 0, -1); in minusMinutes()
1539 …private LocalDateTime plusWithOverflow(LocalDate newDate, long hours, long minutes, long seconds, … in plusWithOverflow() argument
1541 if ((hours | minutes | seconds | nanos) == 0) { in plusWithOverflow()
1546 minutes / MINUTES_PER_DAY + // max/24*60 in plusWithOverflow()
1551 (minutes % MINUTES_PER_DAY) * NANOS_PER_MINUTE + // max 86400000000000 in plusWithOverflow()
DLocalTime.java379 int minutes = (int) (secondOfDay / SECONDS_PER_MINUTE); in ofSecondOfDay() local
380 secondOfDay -= minutes * SECONDS_PER_MINUTE; in ofSecondOfDay()
381 return create(hours, minutes, (int) secondOfDay, 0); in ofSecondOfDay()
397 int minutes = (int) (nanoOfDay / NANOS_PER_MINUTE); in ofNanoOfDay() local
398 nanoOfDay -= minutes * NANOS_PER_MINUTE; in ofNanoOfDay()
401 return create(hours, minutes, seconds, (int) nanoOfDay); in ofNanoOfDay()
DDuration.java205 public static Duration ofMinutes(long minutes) { in ofMinutes() argument
206 return create(Math.multiplyExact(minutes, SECONDS_PER_MINUTE), 0); in ofMinutes()
1441 int minutes = (int) ((seconds % SECONDS_PER_HOUR) / SECONDS_PER_MINUTE); in toString() local
1448 if (minutes != 0) { in toString()
1449 buf.append(minutes).append('M'); in toString()
DOffsetTime.java907 public OffsetTime plusMinutes(long minutes) { in plusMinutes() argument
908 return with(time.plusMinutes(minutes), offset); in plusMinutes()
1018 public OffsetTime minusMinutes(long minutes) { in minusMinutes() argument
1019 return with(time.minusMinutes(minutes), offset); in minusMinutes()
DOffsetDateTime.java1298 public OffsetDateTime plusMinutes(long minutes) { in plusMinutes() argument
1299 return with(dateTime.plusMinutes(minutes), offset); in plusMinutes()
1487 public OffsetDateTime minusMinutes(long minutes) { in minusMinutes() argument
1488 …return (minutes == Long.MIN_VALUE ? plusMinutes(Long.MAX_VALUE).plusMinutes(1) : plusMinutes(-minu… in minusMinutes()
DZonedDateTime.java1739 public ZonedDateTime plusMinutes(long minutes) { in plusMinutes() argument
1740 return resolveInstant(dateTime.plusMinutes(minutes)); in plusMinutes()
1984 public ZonedDateTime minusMinutes(long minutes) { in minusMinutes() argument
1985 …return (minutes == Long.MIN_VALUE ? plusMinutes(Long.MAX_VALUE).plusMinutes(1) : plusMinutes(-minu… in minusMinutes()
/libcore/ojluni/src/main/java/sun/util/calendar/
DCalendarDate.java75 private int minutes; field in CalendarDate
239 return minutes; in getMinutes()
242 public CalendarDate setMinutes(int minutes) { in setMinutes() argument
243 if (this.minutes != minutes) { in setMinutes()
244 this.minutes = minutes; in setMinutes()
252 minutes += n; in addMinutes()
319 public CalendarDate setTimeOfDay(int hours, int minutes, int seconds, int millis) { in setTimeOfDay() argument
321 setMinutes(minutes); in setTimeOfDay()
327 public CalendarDate addTimeOfDay(int hours, int minutes, int seconds, int millis) { in addTimeOfDay() argument
329 addMinutes(minutes); in addTimeOfDay()
[all …]
DImmutableGregorianDate.java113 public CalendarDate setMinutes(int minutes) { in setMinutes() 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
DAbstractCalendar.java251 int minutes = time / MINUTE_IN_MILLIS; in setTimeOfDay() local
256 cdate.setMinutes(minutes); in setTimeOfDay()
/libcore/luni/src/main/java/javax/xml/datatype/
DDatatypeFactory.java237 final BigInteger minutes, in newDuration() argument
274 final int minutes, in newDuration() argument
290 …BigInteger realMinutes = (minutes != DatatypeConstants.FIELD_UNDEFINED) ? BigInteger.valueOf((long… in newDuration()
411 int minutes = (int) (val % 60L); // 60 minutes per hour in newDurationDayTime() local
417 DatatypeConstants.FIELD_UNDEFINED, (int) days, hours, minutes, seconds); in newDurationDayTime()
422 BigInteger.valueOf(minutes), BigDecimal.valueOf(milliseconds, 3)); in newDurationDayTime()
428 BigInteger minutes = BigInteger.valueOf(val % 60L); // 60 minutes per hour in newDurationDayTime() local
433 return newDuration(isPositive, null, null, days, hours, minutes, seconds); in newDurationDayTime()
924 final int minutes, in newXMLGregorianCalendarTime() argument
933 minutes, in newXMLGregorianCalendarTime()
[all …]
DDuration.java908 BigInteger minutes = (BigInteger) getField(DatatypeConstants.MINUTES); in toString() local
910 if (hours != null || minutes != null || seconds != null) { in toString()
915 if (minutes != null) { in toString()
916 buf.append(minutes).append('M'); in toString()
/libcore/ojluni/src/test/java/util/GregorianCalendar/
DGregorianCalendarTest.java148 for (long minutes = Integer.MIN_VALUE; in testGregorianCalendar()
149 runrun && minutes <= Integer.MAX_VALUE; minutes += delta) { in testGregorianCalendar()
151 1, 0, minutes, 0); in testGregorianCalendar()
192 long hourOfDay, long minutes, long seconds) { in checkTimes() argument
194 gc.set((int)year, (int)month, (int)dayOfMonth, (int)hourOfDay, (int)minutes, (int)seconds); in checkTimes()
197 (int)hourOfDay, (int)minutes, (int)seconds); in checkTimes()
202 +"\nhourOfDay="+hourOfDay+", minutes="+minutes+", seconds="+seconds in checkTimes()
/libcore/ojluni/annotations/hiddenapi/sun/util/calendar/
DCalendarDate.java118 public sun.util.calendar.CalendarDate setMinutes(int minutes) { in setMinutes() 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
276 private int minutes; field in CalendarDate
DImmutableGregorianDate.java107 public sun.util.calendar.CalendarDate setMinutes(int minutes) { in setMinutes() 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/
DChronoLocalDateTimeImpl.java324 private ChronoLocalDateTimeImpl<D> plusMinutes(long minutes) { in plusMinutes() argument
325 return plusWithOverflow(date, 0, minutes, 0, 0); in plusMinutes()
337 …private ChronoLocalDateTimeImpl<D> plusWithOverflow(D newDate, long hours, long minutes, long seco… in plusWithOverflow() argument
339 if ((hours | minutes | seconds | nanos) == 0) { in plusWithOverflow()
344 minutes / MINUTES_PER_DAY + // max/24*60 in plusWithOverflow()
348 (minutes % MINUTES_PER_DAY) * NANOS_PER_MINUTE + // max 86400000000000 in plusWithOverflow()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKZoneOffset.java660 private void doTestOffset(ZoneOffset offset, int hours, int minutes, int seconds) {
661 assertEquals(offset.getTotalSeconds(), hours * 60 * 60 + minutes * 60 + seconds);
663 if (hours == 0 && minutes == 0 && seconds == 0) {
666 String str = (hours < 0 || minutes < 0 || seconds < 0) ? "-" : "+";
669 str += Integer.toString(Math.abs(minutes) + 100).substring(1);
677 assertEquals(offset, ZoneOffset.ofHoursMinutesSeconds(hours, minutes, seconds));
679 assertEquals(offset, ZoneOffset.ofHoursMinutes(hours, minutes));
680 if (minutes == 0) {
DTCKDuration.java1281 public void plusMinutes_long(long minutes, long amount, long expectedMinutes) { in plusMinutes_long() argument
1282 Duration t = Duration.ofMinutes(minutes); in plusMinutes_long()
1900 public void minusMinutes_long(long minutes, long amount, long expectedMinutes) { in minusMinutes_long() argument
1901 Duration t = Duration.ofMinutes(minutes); in minusMinutes_long()
2776 public void test_toMinutesPart(Duration dur, int minutes) { in test_toMinutesPart() argument
2777 assertEquals(dur.toMinutesPart(), minutes); in test_toMinutesPart() local
/libcore/luni/src/test/java/libcore/javax/xml/datatype/
DDatatypeFactoryTest.java333 BigInteger minutes, BigDecimal seconds) { in newDuration() argument
338 int mn = minutes == null ? DatatypeConstants.FIELD_UNDEFINED : minutes.intValue(); in newDuration()
/libcore/luni/src/test/java/libcore/java/text/
DDateFormatSymbolsTest.java188 int minutes = (offset - hours * millisInHour) / 1_000 / 60; in formattedOffset() local
190 return String.format(pattern, hours, minutes); in formattedOffset()
/libcore/ojluni/annotations/hiddenapi/java/time/
DOffsetDateTime.java301 public java.time.OffsetDateTime plusMinutes(long minutes) { in plusMinutes() argument
342 public java.time.OffsetDateTime minusMinutes(long minutes) { in minusMinutes() argument
DDuration.java85 public static java.time.Duration ofMinutes(long minutes) { in ofMinutes() argument
/libcore/ojluni/src/main/java/java/text/
DSimpleDateFormat.java2228 int minutes = 0; in subParseNumericZone() local
2256 minutes = c - '0'; in subParseNumericZone()
2261 minutes = minutes * 10 + (c - '0'); in subParseNumericZone()
2262 if (minutes > 59) { in subParseNumericZone()
2266 minutes += hours * 60; in subParseNumericZone()
2267 calb.set(Calendar.ZONE_OFFSET, minutes * MILLIS_PER_MINUTE * sign) in subParseNumericZone()
/libcore/ojluni/src/main/java/java/util/
DDate.java860 public void setMinutes(int minutes) { in setMinutes() argument
861 getCalendarDate().setMinutes(minutes); in setMinutes()
/libcore/tools/testmapping/
Dgen_smoke_tests.py44 MAX_RUN_TIME = datetime.timedelta(minutes=10)

12