/libcore/ojluni/src/main/java/java/time/chrono/ |
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) { in get() 267 temporal = temporal.plus(years * monthRange + months, MONTHS); in addTo() 272 temporal = temporal.plus(months, MONTHS); in addTo() 293 temporal = temporal.minus(years * monthRange + months, MONTHS); in subtractFrom() 298 temporal = temporal.minus(months, MONTHS); in subtractFrom()
|
D | ChronoLocalDateImpl.java | 204 case MONTHS: return plusMonths(amountToAdd); in plus() 383 case MONTHS: return monthsUntil(end); in until()
|
D | AbstractChronology.java | 78 import static java.time.temporal.ChronoUnit.MONTHS; 556 return date(y, 1, 1).plus(months, MONTHS).plus(days, DAYS); in resolveYMD() 587 return date(y, 1, 1).plus(months, MONTHS).plus(weeks, WEEKS).plus(days, DAYS); in resolveYMAA() 650 ChronoLocalDate date = base.plus(months, MONTHS).plus(weeks, WEEKS); in resolveAligned()
|
D | JapaneseChronology.java | 66 import static java.time.temporal.ChronoUnit.MONTHS; 479 return date(y, 1, 1).plus(months, MONTHS).plus(days, DAYS); in resolveYMD()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKYearMonth.java | 72 import static java.time.temporal.ChronoUnit.MONTHS; 448 assertEquals(TEST_2008_06.isSupported(ChronoUnit.MONTHS), true); in test_isSupported_TemporalUnit() 485 {TEST_2008_06, TemporalQueries.precision(), ChronoUnit.MONTHS}, in data_query() 754 {YearMonth.of(1, 10), 1, ChronoUnit.MONTHS, YearMonth.of(1, 11), null}, in data_plus_long_TemporalUnit() 755 {YearMonth.of(1, 10), -12, ChronoUnit.MONTHS, YearMonth.of(0, 10), null}, in data_plus_long_TemporalUnit() 756 {YearMonth.of(1, 10), 0, ChronoUnit.MONTHS, YearMonth.of(1, 10), null}, in data_plus_long_TemporalUnit() 757 {YearMonth.of(999999999, 12), 0, ChronoUnit.MONTHS, YearMonth.of(999999999, 12), null}, in data_plus_long_TemporalUnit() 758 {YearMonth.of(-999999999, 1), 0, ChronoUnit.MONTHS, YearMonth.of(-999999999, 1), null}, in data_plus_long_TemporalUnit() 759 {YearMonth.of(-999999999, 2), -1, ChronoUnit.MONTHS, YearMonth.of(-999999999, 1), null}, in data_plus_long_TemporalUnit() 760 {YearMonth.of(999999999, 3), 9, ChronoUnit.MONTHS, YearMonth.of(999999999, 12), null}, in data_plus_long_TemporalUnit() [all …]
|
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, 1}, [all …]
|
/libcore/ojluni/src/test/java/time/test/java/time/temporal/ |
D | TestChronoUnit.java | 67 import static java.time.temporal.ChronoUnit.MONTHS; 182 assertEquals(MONTHS.between(start, end), expected); in test_monthsBetween() 187 assertEquals(MONTHS.between(end, start), -expected); in test_monthsBetweenReversed() 192 assertEquals(MONTHS.between(start.atTime(12, 30), end.atTime(12, 30)), expected); in test_monthsBetween_LocalDateTimeSameTime() 198 assertEquals(MONTHS.between(start.atTime(12, 30), end.atTime(12, 31)), expected); in test_monthsBetween_LocalDateTimeLaterTime() 200 assertEquals(MONTHS.between(start.atTime(12, 30), end.atTime(12, 29)), expected); in test_monthsBetween_LocalDateTimeLaterTime() 206 …assertEquals(MONTHS.between(start.atStartOfDay(ZoneOffset.ofHours(2)), end.atStartOfDay(ZoneOffset… in test_monthsBetween_ZonedDateSameOffset() 213 …assertEquals(MONTHS.between(start.atStartOfDay(ZoneOffset.ofHours(2)), end.atStartOfDay(ZoneOffset… in test_monthsBetween_ZonedDateLaterOffset() 215 …assertEquals(MONTHS.between(start.atStartOfDay(ZoneOffset.ofHours(1)), end.atStartOfDay(ZoneOffset… in test_monthsBetween_ZonedDateLaterOffset()
|
D | MockFieldNoValue.java | 62 import static java.time.temporal.ChronoUnit.MONTHS; 86 return MONTHS; in getRangeUnit()
|
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/ |
D | TCKChronoUnit.java | 70 import static java.time.temporal.ChronoUnit.MONTHS; 107 {MONTHS, true, false, true}, in data_chronoUnit() 138 {MONTHS, LocalDate.of(2000, 1, 10), true, 1, LocalDate.of(2000, 2, 10)}, in data_unitAndTemporal() 153 {MONTHS, LocalTime.of(1, 2, 3, 400), false, 1, null}, in data_unitAndTemporal()
|
D | TCKChronoField.java | 93 import static java.time.temporal.ChronoUnit.MONTHS; 126 {MONTH_OF_YEAR, MONTHS, YEARS}, in data_fieldUnit() 127 {DAY_OF_MONTH, DAYS, MONTHS}, in data_fieldUnit()
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
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_VA…
|
D | WeekFields.java | 75 import static java.time.temporal.ChronoUnit.MONTHS; 685 … return new ComputedDayOfField("WeekOfMonth", weekDef, WEEKS, MONTHS, WEEK_OF_MONTH_RANGE); in ofWeekOfMonthField() 762 } else if (rangeUnit == MONTHS) { // week-of-month in getFrom() 942 … if (rangeUnit == MONTHS && fieldValues.containsKey(MONTH_OF_YEAR)) { // week-of-month in resolve() 961 date = chrono.date(year, 1, 1).plus(Math.subtractExact(month, 1), MONTHS); in resolveWoM() 1076 } else if (rangeUnit == MONTHS) { // week-of-month in isSupportedBy() 1093 } else if (rangeUnit == MONTHS) { // week-of-month in rangeRefinedBy()
|
D | TemporalAdjusters.java | 68 import static java.time.temporal.ChronoUnit.MONTHS; 209 return (temporal) -> temporal.with(DAY_OF_MONTH, 1).plus(1, MONTHS); in firstDayOfNextMonth()
|
D | ChronoUnit.java | 140 MONTHS("Months", Duration.ofSeconds(31556952L / 12)), enumConstant
|
D | IsoFields.java | 71 import static java.time.temporal.ChronoUnit.MONTHS; 698 .plus((amount % 256) * 3, MONTHS); in addTo() 714 return temporal1Inclusive.until(temporal2Exclusive, MONTHS) / 3; in between()
|
/libcore/ojluni/src/test/java/time/test/java/time/chrono/ |
D | TestChronoLocalDate.java | 91 dates.add(date.minus(1, ChronoUnit.MONTHS)); in test_date_comparator_checkGenerics_ISO() 97 dates.add(date.plus(1, ChronoUnit.MONTHS)); in test_date_comparator_checkGenerics_ISO() 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/ |
D | TCKChronoPeriod.java | 61 import static java.time.temporal.ChronoUnit.MONTHS; 122 assertEquals(period.get(MONTHS), 2); in test_get() 137 assertEquals(period.getUnits().get(1), MONTHS); in test_getUnits() 205 assertEquals(result, date.plus(14, MONTHS).plus(3, DAYS)); in test_addTo() 223 assertEquals(result, date.minus(14, MONTHS).minus(3, DAYS)); in test_subtractFrom()
|
D | TCKChronoLocalDate.java | 265 dates.add(date.minus(1, ChronoUnit.MONTHS)); in test_date_comparisons() 271 dates.add(date.plus(1, ChronoUnit.MONTHS)); in test_date_comparisons()
|
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/serial/ |
D | TCKChronoUnitSerialization.java | 70 import static java.time.temporal.ChronoUnit.MONTHS; 102 {MONTHS}, in data_chronoUnit()
|
/libcore/ojluni/src/main/java/java/time/ |
D | Period.java | 65 import static java.time.temporal.ChronoUnit.MONTHS; 150 Collections.unmodifiableList(Arrays.<TemporalUnit>asList(YEARS, MONTHS, DAYS)); 271 } else if (unit == ChronoUnit.MONTHS) { in from() 429 } else if (unit == ChronoUnit.MONTHS) { in get() 896 temporal = temporal.plus(totalMonths, MONTHS); in addTo() 949 temporal = temporal.minus(totalMonths, MONTHS); in subtractFrom()
|
D | YearMonth.java | 73 import static java.time.temporal.ChronoUnit.MONTHS; 386 …return unit == MONTHS || unit == YEARS || unit == DECADES || unit == CENTURIES || unit == MILLENNI… in isSupported() 802 case MONTHS: return plusMonths(amountToAdd); in plus() 952 return (R) MONTHS; in query() 1044 case MONTHS: return monthsUntil; in until()
|
D | Month.java | 65 import static java.time.temporal.ChronoUnit.MONTHS; 567 return (R) MONTHS; in query()
|
/libcore/luni/src/main/java/javax/xml/datatype/ |
D | Duration.java | 159 boolean monthSet = isSet(DatatypeConstants.MONTHS); in getXMLSchemaType() 243 return getFieldValueAsInt(DatatypeConstants.MONTHS); in getMonths() 897 BigInteger months = (BigInteger) getField(DatatypeConstants.MONTHS); in toString()
|
D | DatatypeConstants.java | 134 public static final Field MONTHS = new Field("MONTHS", 1); field in DatatypeConstants
|
/libcore/luni/src/test/java/libcore/java/time/ |
D | InstantTest.java | 45 assertEquals(false, Instant.EPOCH.isSupported(ChronoUnit.MONTHS)); in test_isSupported_TemporalUnit()
|