/libcore/ojluni/src/test/java/time/test/java/time/temporal/ |
H A D | MockFieldNoValue.java | 62 import static java.time.temporal.ChronoUnit.MONTHS; 86 return MONTHS;
|
H A D | TestChronoUnit.java | 67 import static java.time.temporal.ChronoUnit.MONTHS; 182 assertEquals(MONTHS.between(start, end), expected); 187 assertEquals(MONTHS.between(end, start), -expected); 192 assertEquals(MONTHS.between(start.atTime(12, 30), end.atTime(12, 30)), expected); 198 assertEquals(MONTHS.between(start.atTime(12, 30), end.atTime(12, 31)), expected); 200 assertEquals(MONTHS.between(start.atTime(12, 30), end.atTime(12, 29)), expected); 206 assertEquals(MONTHS.between(start.atStartOfDay(ZoneOffset.ofHours(2)), end.atStartOfDay(ZoneOffset.ofHours(2))), expected); 213 assertEquals(MONTHS.between(start.atStartOfDay(ZoneOffset.ofHours(2)), end.atStartOfDay(ZoneOffset.ofHours(1))), expected); 215 assertEquals(MONTHS.between(start.atStartOfDay(ZoneOffset.ofHours(1)), end.atStartOfDay(ZoneOffset.ofHours(2))), expected);
|
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/serial/ |
H A D | TCKChronoUnitSerialization.java | 70 import static java.time.temporal.ChronoUnit.MONTHS; 102 {MONTHS},
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
H A D | ChronoPeriodImpl.java | 61 import static java.time.temporal.ChronoUnit.MONTHS; 109 Collections.unmodifiableList(Arrays.<TemporalUnit>asList(YEARS, MONTHS, DAYS)); 144 } else if (unit == ChronoUnit.MONTHS) { 267 temporal = temporal.plus(years * monthRange + months, MONTHS); 272 temporal = temporal.plus(months, MONTHS); 293 temporal = temporal.minus(years * monthRange + months, MONTHS); 298 temporal = temporal.minus(months, MONTHS);
|
H A D | ChronoLocalDateImpl.java | 204 case MONTHS: return plusMonths(amountToAdd); 383 case MONTHS: return monthsUntil(end);
|
H A D | AbstractChronology.java | 78 import static java.time.temporal.ChronoUnit.MONTHS; 556 return date(y, 1, 1).plus(months, MONTHS).plus(days, DAYS); 587 return date(y, 1, 1).plus(months, MONTHS).plus(weeks, WEEKS).plus(days, DAYS); 650 ChronoLocalDate date = base.plus(months, MONTHS).plus(weeks, WEEKS);
|
H A D | JapaneseChronology.java | 66 import static java.time.temporal.ChronoUnit.MONTHS; 479 return date(y, 1, 1).plus(months, MONTHS).plus(days, DAYS);
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
H A D | ChronoField.java | 78 import static java.time.temporal.ChronoUnit.MONTHS; 394 DAY_OF_MONTH("DayOfMonth", DAYS, MONTHS, ValueRange.of(1, 28, 31), "day"), 438 ALIGNED_WEEK_OF_MONTH("AlignedWeekOfMonth", WEEKS, MONTHS, ValueRange.of(1, 4, 5)), 465 MONTH_OF_YEAR("MonthOfYear", MONTHS, YEARS, ValueRange.of(1, 12), "month"), 485 PROLEPTIC_MONTH("ProlepticMonth", MONTHS, FOREVER, ValueRange.of(Year.MIN_VALUE * 12L, Year.MAX_VALUE * 12L + 11)),
|
H A D | TemporalAdjusters.java | 68 import static java.time.temporal.ChronoUnit.MONTHS; 203 * temporal.with(DAY_OF_MONTH, 1).plus(1, MONTHS); 209 return (temporal) -> temporal.with(DAY_OF_MONTH, 1).plus(1, MONTHS);
|
H A D | ChronoUnit.java | 140 MONTHS("Months", Duration.ofSeconds(31556952L / 12)), enum constant in enum:ChronoUnit
|
H A D | WeekFields.java | 75 import static java.time.temporal.ChronoUnit.MONTHS; 685 return new ComputedDayOfField("WeekOfMonth", weekDef, WEEKS, MONTHS, WEEK_OF_MONTH_RANGE); 762 } else if (rangeUnit == MONTHS) { // week-of-month 942 if (rangeUnit == MONTHS && fieldValues.containsKey(MONTH_OF_YEAR)) { // week-of-month 961 date = chrono.date(year, 1, 1).plus(Math.subtractExact(month, 1), MONTHS); 1076 } else if (rangeUnit == MONTHS) { // week-of-month 1093 } else if (rangeUnit == MONTHS) { // week-of-month
|
H A D | IsoFields.java | 71 import static java.time.temporal.ChronoUnit.MONTHS; 698 .plus((amount % 256) * 3, MONTHS); 714 return temporal1Inclusive.until(temporal2Exclusive, MONTHS) / 3;
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
H A D | TCKYearMonth.java | 72 import static java.time.temporal.ChronoUnit.MONTHS; 448 assertEquals(TEST_2008_06.isSupported(ChronoUnit.MONTHS), true); 485 {TEST_2008_06, TemporalQueries.precision(), ChronoUnit.MONTHS}, 754 {YearMonth.of(1, 10), 1, ChronoUnit.MONTHS, YearMonth.of(1, 11), null}, 755 {YearMonth.of(1, 10), -12, ChronoUnit.MONTHS, YearMonth.of(0, 10), null}, 756 {YearMonth.of(1, 10), 0, ChronoUnit.MONTHS, YearMonth.of(1, 10), null}, 757 {YearMonth.of(999999999, 12), 0, ChronoUnit.MONTHS, YearMonth.of(999999999, 12), null}, 758 {YearMonth.of(-999999999, 1), 0, ChronoUnit.MONTHS, YearMonth.of(-999999999, 1), null}, 759 {YearMonth.of(-999999999, 2), -1, ChronoUnit.MONTHS, YearMonth.of(-999999999, 1), null}, 760 {YearMonth.of(999999999, 3), 9, ChronoUnit.MONTHS, YearMont [all...] |
H A D | TCKLocalDate.java | 80 import static java.time.temporal.ChronoUnit.MONTHS; 657 assertEquals(TEST_2007_07_15.isSupported(ChronoUnit.MONTHS), true); 971 MockSimplePeriod period = MockSimplePeriod.of(7, ChronoUnit.MONTHS); 1011 LocalDate t = TEST_2007_07_15.plus(7, ChronoUnit.MONTHS); 1331 MockSimplePeriod period = MockSimplePeriod.of(7, ChronoUnit.MONTHS); 1371 LocalDate t = TEST_2007_07_15.minus(7, ChronoUnit.MONTHS); 1689 {date(2000, 1, 1), date(2000, 1, 1), MONTHS, 0}, 1704 {date(2000, 1, 15), date(2000, 2, 14), MONTHS, 0}, 1705 {date(2000, 1, 15), date(2000, 2, 15), MONTHS, 1}, 1706 {date(2000, 1, 15), date(2000, 2, 16), MONTHS, [all...] |
/libcore/luni/src/main/java/javax/xml/datatype/ |
H A D | DatatypeConstants.java | 134 public static final Field MONTHS = new Field("MONTHS", 1); field in class:DatatypeConstants
|
H A D | Duration.java | 159 boolean monthSet = isSet(DatatypeConstants.MONTHS); 234 * Obtains the value of the MONTHS field as an integer value, 238 * that this method works on the MONTHS field. 243 return getFieldValueAsInt(DatatypeConstants.MONTHS); 383 * In case of YEARS, MONTHS, DAYS, HOURS, and MINUTES, the returned 388 * one of the six Field constants (YEARS,MONTHS,DAYS,HOURS, 394 * For YEARS, MONTHS, DAYS, HOURS, and MINUTES, this method 406 * one of the six Field constants (YEARS,MONTHS,DAYS,HOURS, 427 * one of the six Field constants (YEARS,MONTHS,DAYS,HOURS, 494 * order of YEARS, MONTHS, DAY [all...] |
/libcore/luni/src/test/java/libcore/java/time/ |
H A D | InstantTest.java | 45 assertEquals(false, Instant.EPOCH.isSupported(ChronoUnit.MONTHS));
|
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/ |
H A D | TCKChronoUnit.java | 70 import static java.time.temporal.ChronoUnit.MONTHS; 107 {MONTHS, true, false, true}, 138 {MONTHS, LocalDate.of(2000, 1, 10), true, 1, LocalDate.of(2000, 2, 10)}, 153 {MONTHS, LocalTime.of(1, 2, 3, 400), false, 1, null},
|
H A D | TCKChronoField.java | 93 import static java.time.temporal.ChronoUnit.MONTHS; 126 {MONTH_OF_YEAR, MONTHS, YEARS}, 127 {DAY_OF_MONTH, DAYS, MONTHS},
|
/libcore/ojluni/src/test/java/time/test/java/time/chrono/ |
H A D | TestChronoLocalDate.java | 91 dates.add(date.minus(1, ChronoUnit.MONTHS)); 97 dates.add(date.plus(1, ChronoUnit.MONTHS)); 115 dates.add(date.minus(1, ChronoUnit.MONTHS)); 121 dates.add(date.plus(1, ChronoUnit.MONTHS));
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
H A D | TCKChronoPeriod.java | 61 import static java.time.temporal.ChronoUnit.MONTHS; 122 assertEquals(period.get(MONTHS), 2); 137 assertEquals(period.getUnits().get(1), MONTHS); 205 assertEquals(result, date.plus(14, MONTHS).plus(3, DAYS)); 223 assertEquals(result, date.minus(14, MONTHS).minus(3, DAYS));
|
H A D | TCKChronoLocalDate.java | 265 dates.add(date.minus(1, ChronoUnit.MONTHS)); 271 dates.add(date.plus(1, ChronoUnit.MONTHS));
|
/libcore/ojluni/src/main/java/java/time/ |
H A D | Period.java | 65 import static java.time.temporal.ChronoUnit.MONTHS; 114 * {@link ChronoUnit#MONTHS MONTHS} and {@link ChronoUnit#DAYS DAYS}. 150 Collections.unmodifiableList(Arrays.<TemporalUnit>asList(YEARS, MONTHS, DAYS)); 243 * the {@link ChronoUnit#YEARS YEARS}, {@link ChronoUnit#MONTHS MONTHS} 271 } else if (unit == ChronoUnit.MONTHS) { 416 * {@link ChronoUnit#YEARS YEARS}, {@link ChronoUnit#MONTHS MONTHS} and 429 } else if (unit == ChronoUnit.MONTHS) { [all...] |
H A D | Month.java | 65 import static java.time.temporal.ChronoUnit.MONTHS; 567 return (R) MONTHS;
|
H A D | YearMonth.java | 73 import static java.time.temporal.ChronoUnit.MONTHS; 366 * <li>{@code MONTHS} 386 return unit == MONTHS || unit == YEARS || unit == DECADES || unit == CENTURIES || unit == MILLENNIA || unit == ERAS; 757 * <li>{@code MONTHS} - 802 case MONTHS: return plusMonths(amountToAdd); 952 return (R) MONTHS; 1013 * amount = start.until(end, MONTHS); 1014 * amount = MONTHS.between(start, end); 1019 * The units {@code MONTHS}, {@code YEARS}, {@code DECADES}, 1044 case MONTHS [all...] |