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.java750 int yowby, int wowby, int dow) { in ofWeekBasedYear() argument
758 wowby = Math.min(wowby, newYearWeek - 1); in ofWeekBasedYear()
760 int days = -offset + (dow - 1) + (wowby - 1) * 7; in ofWeekBasedYear()
931 int wowby = temporal.get(weekDef.weekOfWeekBasedYear); in adjustInto() local
932 return (R) ofWeekBasedYear(Chronology.from(temporal), (int)newValue, wowby, idow); in adjustInto()
1037 long wowby = fieldValues.get(weekDef.weekOfWeekBasedYear); in resolveWBY() local
1038 long weeks = Math.subtractExact(wowby, 1); in resolveWBY()
1041 int wowby = weekDef.weekOfWeekBasedYear.range().checkValidIntValue( in resolveWBY() local
1043 date = ofWeekBasedYear(chrono, yowby, wowby, localDow); in resolveWBY()
DIsoFields.java497 long wowby = fieldValues.get(WEEK_OF_WEEK_BASED_YEAR); in resolve() local
509 date = date.plusWeeks(Math.subtractExact(wowby, 1)).with(DAY_OF_WEEK, dow); in resolve()
512 if (wowby < 1 || wowby > 52) { in resolve()
514 … getWeekRange(date).checkValidValue(wowby, this); // only allow exact range in resolve()
516 … range().checkValidValue(wowby, this); // allow 1-53 rolling into next year in resolve()
519 date = date.plusWeeks(wowby - 1).with(DAY_OF_WEEK, dow); in resolve()
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/
DTCKWeekFields.java639 int wowby = date.get(wowbyField); in test_parse_resolve_localizedWoWBY_lenient() local
641 for (int j = wowby - 60; j < wowby + 60; j++) { in test_parse_resolve_localizedWoWBY_lenient()
644 assertEquals(parsed, date.plusWeeks(j - wowby), " ::" + str + ": :" + i + "::" + j); in test_parse_resolve_localizedWoWBY_lenient()
707 int wowby = date.get(wowbyField); in test_parse_resolve_localizedWoWBYDow_lenient() local
709 for (int j = wowby - 60; j < wowby + 60; j++) { in test_parse_resolve_localizedWoWBYDow_lenient()
712 assertEquals(parsed, date.plusWeeks(j - wowby), " ::" + str + ": :" + i + "::" + j); in test_parse_resolve_localizedWoWBYDow_lenient()