Home
last modified time | relevance | path

Searched refs:wowby (Results 1 – 3 of 3) sorted by relevance

/libcore/ojluni/src/main/java/java/time/temporal/
DWeekFields.java724 int yowby, int wowby, int dow) { in ofWeekBasedYear() argument
732 wowby = Math.min(wowby, newYearWeek - 1); in ofWeekBasedYear()
734 int days = -offset + (dow - 1) + (wowby - 1) * 7; in ofWeekBasedYear()
905 int wowby = temporal.get(weekDef.weekOfWeekBasedYear); in adjustInto() local
906 return (R) ofWeekBasedYear(Chronology.from(temporal), (int)newValue, wowby, idow); in adjustInto()
1011 long wowby = fieldValues.get(weekDef.weekOfWeekBasedYear); in resolveWBY() local
1012 long weeks = Math.subtractExact(wowby, 1); in resolveWBY()
1015 int wowby = weekDef.weekOfWeekBasedYear.range().checkValidIntValue( in resolveWBY() local
1017 date = ofWeekBasedYear(chrono, yowby, wowby, localDow); in resolveWBY()
DIsoFields.java475 long wowby = fieldValues.get(WEEK_OF_WEEK_BASED_YEAR); in resolve() local
487 date = date.plusWeeks(Math.subtractExact(wowby, 1)).with(DAY_OF_WEEK, dow); in resolve()
490 if (wowby < 1 || wowby > 52) { in resolve()
492 … getWeekRange(date).checkValidValue(wowby, this); // only allow exact range in resolve()
494 … range().checkValidValue(wowby, this); // allow 1-53 rolling into next year in resolve()
497 date = date.plusWeeks(wowby - 1).with(DAY_OF_WEEK, dow); in resolve()
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/
DTCKWeekFields.java636 int wowby = date.get(wowbyField); in test_parse_resolve_localizedWoWBY_lenient() local
638 for (int j = wowby - 60; j < wowby + 60; j++) { in test_parse_resolve_localizedWoWBY_lenient()
641 assertEquals(parsed, date.plusWeeks(j - wowby), " ::" + str + ": :" + i + "::" + j); in test_parse_resolve_localizedWoWBY_lenient()
704 int wowby = date.get(wowbyField); in test_parse_resolve_localizedWoWBYDow_lenient() local
706 for (int j = wowby - 60; j < wowby + 60; j++) { in test_parse_resolve_localizedWoWBYDow_lenient()
709 assertEquals(parsed, date.plusWeeks(j - wowby), " ::" + str + ": :" + i + "::" + j); in test_parse_resolve_localizedWoWBYDow_lenient()