Home
last modified time | relevance | path

Searched refs:IsoFields (Results 1 – 19 of 19) sorted by relevance

/libcore/ojluni/src/test/java/time/tck/java/time/temporal/
DTCKIsoFields.java79 import java.time.temporal.IsoFields;
128 assertEquals(IsoFields.DAY_OF_QUARTER.getFrom(date), doq); in test_DOQ()
129 assertEquals(date.get(IsoFields.DAY_OF_QUARTER), doq); in test_DOQ()
133 assertEquals(IsoFields.DAY_OF_QUARTER.isDateBased(), true); in test_DOQ_basics()
134 assertEquals(IsoFields.DAY_OF_QUARTER.isTimeBased(), false); in test_DOQ_basics()
142 assertEquals(IsoFields.QUARTER_OF_YEAR.getFrom(date), qoy); in test_QOY()
143 assertEquals(date.get(IsoFields.QUARTER_OF_YEAR), qoy); in test_QOY()
147 assertEquals(IsoFields.QUARTER_OF_YEAR.isDateBased(), true); in test_QOY_basics()
148 assertEquals(IsoFields.QUARTER_OF_YEAR.isTimeBased(), false); in test_QOY_basics()
158 .appendValue(IsoFields.QUARTER_OF_YEAR).appendLiteral('-') in test_parse_quarters()
[all …]
DTCKJulianFields.java70 import java.time.temporal.IsoFields;
/libcore/ojluni/src/test/java/time/test/java/time/temporal/
DTestIsoWeekFields.java39 import java.time.temporal.IsoFields;
56 {IsoFields.WEEK_OF_WEEK_BASED_YEAR, IsoFields.WEEK_BASED_YEAR}, in data_Fields()
69 assertEquals(weekField.getRangeUnit(), IsoFields.WEEK_BASED_YEARS); in test_WOWBY_basics()
82 … assertEquals(IsoFields.WEEK_OF_WEEK_BASED_YEAR.isSupportedBy(ThaiBuddhistDate.now()), false); in test_WOWBY_isSupportedBy_fieldsDiffer()
109 assertEquals(yearField.getBaseUnit(), IsoFields.WEEK_BASED_YEARS); in test_WBY_basics()
123 assertEquals(IsoFields.WEEK_BASED_YEAR.isSupportedBy(ThaiBuddhistDate.now()), false); in test_WBY_isSupportedBy_ISO()
128 assertEquals(IsoFields.WEEK_BASED_YEARS.isSupportedBy(LocalDate.now()),true); in test_Unit_isSupportedBy_ISO()
129 assertEquals(IsoFields.WEEK_BASED_YEARS.isSupportedBy(ThaiBuddhistDate.now()),false); in test_Unit_isSupportedBy_ISO()
130 assertEquals(IsoFields.QUARTER_YEARS.isSupportedBy(LocalDate.now()),true); in test_Unit_isSupportedBy_ISO()
131 assertEquals(IsoFields.QUARTER_YEARS.isSupportedBy(ThaiBuddhistDate.now()),false); in test_Unit_isSupportedBy_ISO()
[all …]
DTestChronoField.java63 import java.time.temporal.IsoFields;
125 String name = IsoFields.WEEK_OF_WEEK_BASED_YEAR.getDisplayName(locale); in test_IsoFields_week_based_year()
131 String name = IsoFields.WEEK_OF_WEEK_BASED_YEAR.getDisplayName((Locale)null); in test_nullIsoFields_week_based_year()
157 IsoFields.DAY_OF_QUARTER.getDisplayName((Locale)null); in test_nullLocaleTemporalFieldDisplayName()
/libcore/ojluni/src/test/java/time/test/java/time/
DTestLocalDate.java70 import java.time.temporal.IsoFields;
466 .plus(quarterYears, IsoFields.QUARTER_YEARS); in test_plus_QuarterYears()
477 .minus(quarterYears, IsoFields.QUARTER_YEARS); in test_minus_QuarterYears()
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKDateTimeFormatters.java94 import java.time.temporal.IsoFields;
1171 assertEquals(parsed.getLong(IsoFields.WEEK_BASED_YEAR), 123456L); in test_parse_weekDate_largeYear()
1172 assertEquals(parsed.getLong(IsoFields.WEEK_OF_WEEK_BASED_YEAR), 4L); in test_parse_weekDate_largeYear()
1425 fields.put(IsoFields.WEEK_BASED_YEAR, dt.getLong(IsoFields.WEEK_BASED_YEAR)); in setFields()
1426 … fields.put(IsoFields.WEEK_OF_WEEK_BASED_YEAR, dt.getLong(IsoFields.WEEK_OF_WEEK_BASED_YEAR)); in setFields()
1437 fields.put(IsoFields.WEEK_BASED_YEAR, dt.getLong(IsoFields.WEEK_BASED_YEAR)); in setFields()
1438 … fields.put(IsoFields.WEEK_OF_WEEK_BASED_YEAR, dt.getLong(IsoFields.WEEK_OF_WEEK_BASED_YEAR)); in setFields()
DTCKDateTimeFormatter.java98 import java.time.temporal.IsoFields;
382 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()
DTCKDateTimeParseResolver.java119 import java.time.temporal.IsoFields;
175 {YEAR, 2012, IsoFields.QUARTER_OF_YEAR, 3}, in data_resolveTwoNoChange()
184 {MONTH_OF_YEAR, 3, IsoFields.QUARTER_OF_YEAR, 5}, in data_resolveTwoNoChange()
216 {MONTH_OF_YEAR, 1, DAY_OF_MONTH, 5, IsoFields.QUARTER_OF_YEAR, 3}, in data_resolveThreeNoChange()
/libcore/ojluni/src/test/java/time/test/java/time/format/
DTestTextPrinterWithLocale.java72 import static java.time.temporal.IsoFields.QUARTER_OF_YEAR;
DTestTextPrinter.java66 import static java.time.temporal.IsoFields.QUARTER_OF_YEAR;
DTestTextParser.java65 import static java.time.temporal.IsoFields.QUARTER_OF_YEAR;
/libcore/ojluni/src/main/java/java/time/temporal/
DWeekFields.java242 public static final TemporalUnit WEEK_BASED_YEARS = IsoFields.WEEK_BASED_YEARS;
728 …return new ComputedDayOfField("WeekOfWeekBasedYear", weekDef, WEEKS, IsoFields.WEEK_BASED_YEARS, W… in ofWeekOfWeekBasedYearField()
737 …return new ComputedDayOfField("WeekBasedYear", weekDef, IsoFields.WEEK_BASED_YEARS, FOREVER, Chron… in ofWeekBasedYearField()
DIsoFields.java162 public final class IsoFields { class
288 private IsoFields() { in IsoFields() method in IsoFields
/libcore/ojluni/src/main/java/java/time/format/
DDateTimeFormatter.java88 import java.time.temporal.IsoFields;
1127 .appendValue(IsoFields.WEEK_BASED_YEAR, 4, 10, SignStyle.EXCEEDS_PAD)
1129 .appendValue(IsoFields.WEEK_OF_WEEK_BASED_YEAR, 2)
DDateTimeTextProvider.java78 import java.time.temporal.IsoFields;
466 if (field == IsoFields.QUARTER_OF_YEAR) { in createStore()
DDateTimeFormatterBuilder.java103 import java.time.temporal.IsoFields;
2092 … FIELD_MAP.put('Q', IsoFields.QUARTER_OF_YEAR); // LDML (removed quarter from 310)
2093 FIELD_MAP.put('q', IsoFields.QUARTER_OF_YEAR); // LDML (stand-alone)
/libcore/
Dopenjdk_java_files.bp871 "ojluni/src/main/java/java/time/temporal/IsoFields.java",
DEXPECTED_UPSTREAM870 …/main/java/java/time/temporal/IsoFields.java,jdk17u/jdk-17.0.6-ga,src/java.base/share/classes/java…
/libcore/api/
Dcurrent.txt12831 public final class IsoFields {