Searched refs:monthRange (Results 1 – 2 of 2) sorted by relevance
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | ChronoPeriodImpl.java | 229 long monthRange = monthRange(); in normalized() local 230 if (monthRange > 0) { in normalized() 231 long totalMonths = years * monthRange + months; in normalized() 232 long splitYears = totalMonths / monthRange; in normalized() 233 int splitMonths = (int) (totalMonths % monthRange); // no overflow in normalized() 248 private long monthRange() { in monthRange() method in ChronoPeriodImpl 265 long monthRange = monthRange(); in addTo() local 266 if (monthRange > 0) { in addTo() 267 temporal = temporal.plus(years * monthRange + months, MONTHS); in addTo() 291 long monthRange = monthRange(); in subtractFrom() local [all …]
|
/libcore/ojluni/src/test/java/time/test/java/time/chrono/ |
D | TestUmmAlQuraChronology.java | 171 ValueRange monthRange = chrono.range(MONTH_OF_YEAR); in Test_UmmAlQuraRanges() local 172 assertEquals(monthRange.getMinimum(), minMonth, "Minimum month for Hijrah chronology"); in Test_UmmAlQuraRanges() 173 assertEquals(monthRange.getMaximum(), maxMonth, "Maximum month for Hijrah chronology"); in Test_UmmAlQuraRanges() 186 monthRange = date.range(MONTH_OF_YEAR); in Test_UmmAlQuraRanges() 187 assertEquals(monthRange.getMinimum(), minMonth, "Minimum month for HijrahDate"); in Test_UmmAlQuraRanges() 188 assertEquals(monthRange.getMaximum(), maxMonth, "Maximum month for HijrahDate"); in Test_UmmAlQuraRanges() 201 ValueRange monthRange = chrono.range(MONTH_OF_YEAR); in test_hijrahDateLimits() local 206 (int)monthRange.getMinimum(), (int)dayRange.getMinimum()); in test_hijrahDateLimits() 216 (int)monthRange.getMaximum(), 1); in test_hijrahDateLimits()
|