Searched refs:doq (Results 1 – 2 of 2) sorted by relevance
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | IsoFields.java | 358 long doq = fieldValues.get(DAY_OF_QUARTER); in resolve() local 363 doq = Math.subtractExact(doq, 1); in resolve() 367 if (doq < 1 || doq > 90) { in resolve() 369 … rangeRefinedBy(date).checkValidValue(doq, this); // only allow exact range in resolve() 371 … range().checkValidValue(doq, this); // allow 1-92 rolling into next quarter in resolve() 374 doq--; in resolve() 379 return date.plusDays(doq); in resolve()
|
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/ |
D | TCKIsoFields.java | 127 public void test_DOQ(LocalDate date, int doq, int qoy) { in test_DOQ() argument 128 assertEquals(IsoFields.DAY_OF_QUARTER.getFrom(date), doq); in test_DOQ() local 129 assertEquals(date.get(IsoFields.DAY_OF_QUARTER), doq); in test_DOQ() local 141 public void test_QOY(LocalDate date, int doq, int qoy) { in test_QOY() argument 155 public void test_parse_quarters(LocalDate date, int doq, int qoy) { in test_parse_quarters() argument 161 LocalDate parsed = LocalDate.parse(date.getYear() + "-" + qoy + "-" + doq, f); in test_parse_quarters() 166 public void test_parse_quarters_SMART(LocalDate date, int doq, int qoy) { in test_parse_quarters_SMART() argument 172 LocalDate parsed = LocalDate.parse(date.getYear() + "-" + qoy + "-" + doq, f); in test_parse_quarters_SMART() 177 public void test_parse_quarters_LENIENT(LocalDate date, int doq, int qoy) { in test_parse_quarters_LENIENT() argument 183 LocalDate parsed = LocalDate.parse(date.getYear() + "-" + qoy + "-" + doq, f); in test_parse_quarters_LENIENT()
|