Home
last modified time | relevance | path

Searched refs:WEEK_BASED_YEAR (Results 1 – 8 of 8) sorted by relevance

/libcore/ojluni/src/main/java/java/time/temporal/
DIsoFields.java260 public static final TemporalField WEEK_BASED_YEAR = Field.WEEK_BASED_YEAR; field in IsoFields
491 Long wbyLong = fieldValues.get(WEEK_BASED_YEAR); in resolve()
496 …int wby = WEEK_BASED_YEAR.range().checkValidIntValue(wbyLong, WEEK_BASED_YEAR); // always validate in resolve()
522 fieldValues.remove(WEEK_BASED_YEAR); in resolve()
531 WEEK_BASED_YEAR { enumConstant
567 int newWby = range().checkValidIntValue(newValue, WEEK_BASED_YEAR); // strict check in adjustInto()
718 return (R) temporal.with(WEEK_BASED_YEAR, in addTo()
719 Math.addExact(temporal.get(WEEK_BASED_YEAR), amount)); in addTo()
735 return Math.subtractExact(temporal2Exclusive.getLong(WEEK_BASED_YEAR), in between()
736 temporal1Inclusive.getLong(WEEK_BASED_YEAR)); in between()
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/
DTCKIsoFields.java341 assertEquals(IsoFields.WEEK_BASED_YEAR.getFrom(date), wby); in test_WBY()
342 assertEquals(date.get(IsoFields.WEEK_BASED_YEAR), wby); in test_WBY()
346 assertEquals(IsoFields.WEEK_BASED_YEAR.isDateBased(), true); in test_WBY_basics()
347 assertEquals(IsoFields.WEEK_BASED_YEAR.isTimeBased(), false); in test_WBY_basics()
356 .appendValue(IsoFields.WEEK_BASED_YEAR).appendLiteral('-') in test_parse_weeks_STRICT()
367 .appendValue(IsoFields.WEEK_BASED_YEAR).appendLiteral('-') in test_parse_weeks_SMART()
378 .appendValue(IsoFields.WEEK_BASED_YEAR).appendLiteral('-') in test_parse_weeks_LENIENT()
406 .appendValue(IsoFields.WEEK_BASED_YEAR).appendLiteral(':') in test_parse_parseLenientWeek_STRICT()
416 .appendValue(IsoFields.WEEK_BASED_YEAR).appendLiteral(':') in test_parse_parseLenientWeek_SMART()
436 .appendValue(IsoFields.WEEK_BASED_YEAR).appendLiteral(':') in test_parse_parseLenientWeek_LENIENT()
[all …]
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKLocalizedFieldParser.java85 public static final TemporalField WEEK_BASED_YEAR = WEEKDEF.weekBasedYear(); field in TCKLocalizedFieldParser
217 {"YYww", WEEK_BASED_YEAR, WEEK_OF_WEEK_BASED_YEAR, "1612", 2016, 12}, in provider_adjacentValuePatterns1()
218 {"YYYYww", WEEK_BASED_YEAR, WEEK_OF_WEEK_BASED_YEAR, "201612", 2016, 12}, in provider_adjacentValuePatterns1()
236 {"YYYYwwc", WEEK_BASED_YEAR, WEEK_OF_WEEK_BASED_YEAR, DAY_OF_WEEK, in provider_adjacentValuePatterns2()
238 {"YYYYwwee", WEEK_BASED_YEAR, WEEK_OF_WEEK_BASED_YEAR, DAY_OF_WEEK, in provider_adjacentValuePatterns2()
240 {"YYYYwwe", WEEK_BASED_YEAR, WEEK_OF_WEEK_BASED_YEAR, DAY_OF_WEEK, in provider_adjacentValuePatterns2()
DTCKDateTimeFormatter.java382 return field == IsoFields.WEEK_BASED_YEAR; in test_format_withChronology_nonChronoFieldMapLink()
386 if (field == IsoFields.WEEK_BASED_YEAR) { in test_format_withChronology_nonChronoFieldMapLink()
393 .appendValue(IsoFields.WEEK_BASED_YEAR, 4) in test_format_withChronology_nonChronoFieldMapLink()
DTCKDateTimeFormatters.java1171 assertEquals(parsed.getLong(IsoFields.WEEK_BASED_YEAR), 123456L); in test_parse_weekDate_largeYear()
1425 fields.put(IsoFields.WEEK_BASED_YEAR, dt.getLong(IsoFields.WEEK_BASED_YEAR)); in setFields()
1437 fields.put(IsoFields.WEEK_BASED_YEAR, dt.getLong(IsoFields.WEEK_BASED_YEAR)); in setFields()
/libcore/ojluni/src/test/java/time/test/java/time/temporal/
DTestIsoWeekFields.java56 {IsoFields.WEEK_OF_WEEK_BASED_YEAR, IsoFields.WEEK_BASED_YEAR}, in data_Fields()
123 assertEquals(IsoFields.WEEK_BASED_YEAR.isSupportedBy(ThaiBuddhistDate.now()), false); in test_WBY_isSupportedBy_ISO()
/libcore/ojluni/src/main/java/java/time/format/
DDateTimeFormatter.java1127 .appendValue(IsoFields.WEEK_BASED_YEAR, 4, 10, SignStyle.EXCEEDS_PAD)
/libcore/api/
Dcurrent.txt12835 field public static final java.time.temporal.TemporalField WEEK_BASED_YEAR;