/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestNumberPrinter.java | 62 import static java.time.temporal.ChronoField.DAY_OF_MONTH; 84 getFormatter(DAY_OF_MONTH, 1, 2, SignStyle.NEVER).formatTo(EMPTY_DTA, buf); in test_print_emptyCalendrical() 89 getFormatter(DAY_OF_MONTH, 1, 2, SignStyle.NEVER).formatTo(LocalDate.of(2012, 1, 3), buf); in test_print_append() 187 …getFormatter(DAY_OF_MONTH, minPad, maxPad, SignStyle.NOT_NEGATIVE).formatTo(new MockFieldValue(DAY… in test_pad_NOT_NEGATIVE() 194 assertEquals(ex.getMessage().contains(DAY_OF_MONTH.toString()), true); in test_pad_NOT_NEGATIVE() 204 …getFormatter(DAY_OF_MONTH, minPad, maxPad, SignStyle.NEVER).formatTo(new MockFieldValue(DAY_OF_MON… in test_pad_NEVER() 213 assertEquals(ex.getMessage().contains(DAY_OF_MONTH.toString()), true); in test_pad_NEVER() 220 …getFormatter(DAY_OF_MONTH, minPad, maxPad, SignStyle.NORMAL).formatTo(new MockFieldValue(DAY_OF_MO… in test_pad_NORMAL() 229 assertEquals(ex.getMessage().contains(DAY_OF_MONTH.toString()), true); in test_pad_NORMAL() 236 …getFormatter(DAY_OF_MONTH, minPad, maxPad, SignStyle.ALWAYS).formatTo(new MockFieldValue(DAY_OF_MO… [all …]
|
D | TestTextPrinter.java | 62 import static java.time.temporal.ChronoField.DAY_OF_MONTH; 130 {DAY_OF_MONTH, TextStyle.FULL, 1, "1"}, in provider_dow() 131 {DAY_OF_MONTH, TextStyle.FULL, 2, "2"}, in provider_dow() 132 {DAY_OF_MONTH, TextStyle.FULL, 3, "3"}, in provider_dow() 133 {DAY_OF_MONTH, TextStyle.FULL, 28, "28"}, in provider_dow() 134 {DAY_OF_MONTH, TextStyle.FULL, 29, "29"}, in provider_dow() 135 {DAY_OF_MONTH, TextStyle.FULL, 30, "30"}, in provider_dow() 136 {DAY_OF_MONTH, TextStyle.FULL, 31, "31"}, in provider_dow() 138 {DAY_OF_MONTH, TextStyle.SHORT, 1, "1"}, in provider_dow() 139 {DAY_OF_MONTH, TextStyle.SHORT, 2, "2"}, in provider_dow() [all …]
|
D | TestDateTimeFormatterBuilder.java | 62 import static java.time.temporal.ChronoField.DAY_OF_MONTH; 146 builder.appendValue(DAY_OF_MONTH); in test_appendValue_1arg() 159 builder.appendValue(DAY_OF_MONTH, 3); in test_appendValue_2arg() 171 builder.appendValue(DAY_OF_MONTH, 0); in test_appendValue_2arg_widthTooSmall() 176 builder.appendValue(DAY_OF_MONTH, 20); in test_appendValue_2arg_widthTooBig() 182 builder.appendValue(DAY_OF_MONTH, 2, 3, SignStyle.NORMAL); in test_appendValue_3arg() 194 builder.appendValue(DAY_OF_MONTH, 0, 2, SignStyle.NORMAL); in test_appendValue_3arg_minWidthTooSmall() 199 builder.appendValue(DAY_OF_MONTH, 20, 2, SignStyle.NORMAL); in test_appendValue_3arg_minWidthTooBig() 204 builder.appendValue(DAY_OF_MONTH, 2, 0, SignStyle.NORMAL); in test_appendValue_3arg_maxWidthTooSmall() 209 builder.appendValue(DAY_OF_MONTH, 2, 20, SignStyle.NORMAL); in test_appendValue_3arg_maxWidthTooBig() [all …]
|
D | TestNumberParser.java | 62 import static java.time.temporal.ChronoField.DAY_OF_MONTH; 90 {DAY_OF_MONTH, 1, 2, SignStyle.NEVER, "12", -1, IndexOutOfBoundsException.class}, in data_error() 91 {DAY_OF_MONTH, 1, 2, SignStyle.NEVER, "12", 3, IndexOutOfBoundsException.class}, in data_error() 169 DateTimeFormatter dtf = getFormatter(DAY_OF_MONTH, minWidth, maxWidth, signStyle); in test_parse_fresh() 180 assertEquals(parsed.getLong(DAY_OF_MONTH), expectedValue); in test_parse_fresh() 310 … TemporalAccessor parsed = getFormatter(DAY_OF_MONTH, min, max, style).parseUnresolved(input, pos); in test_parseSignsStrict() 315 assertEquals(parsed.getLong(DAY_OF_MONTH), (long)parseVal); in test_parseSignsStrict() 420 … TemporalAccessor parsed = getFormatter(DAY_OF_MONTH, min, max, style).parseUnresolved(input, pos); in test_parseSignsLenient() 425 assertEquals(parsed.getLong(DAY_OF_MONTH), (long)parseVal); in test_parseSignsLenient() 511 … TemporalAccessor parsed = getFormatter(DAY_OF_MONTH, min, max, style).parseUnresolved(input, pos); in test_parseDigitsLenient() [all …]
|
D | TestTextParser.java | 62 import static java.time.temporal.ChronoField.DAY_OF_MONTH; 194 {DAY_OF_MONTH, TextStyle.FULL, 1, "1"}, in provider_number() 195 {DAY_OF_MONTH, TextStyle.FULL, 2, "2"}, in provider_number() 196 {DAY_OF_MONTH, TextStyle.FULL, 30, "30"}, in provider_number() 197 {DAY_OF_MONTH, TextStyle.FULL, 31, "31"}, in provider_number() 199 {DAY_OF_MONTH, TextStyle.SHORT, 1, "1"}, in provider_number() 200 {DAY_OF_MONTH, TextStyle.SHORT, 2, "2"}, in provider_number() 201 {DAY_OF_MONTH, TextStyle.SHORT, 30, "30"}, in provider_number() 202 {DAY_OF_MONTH, TextStyle.SHORT, 31, "31"}, in provider_number()
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKDateTimeTextPrinting.java | 62 import static java.time.temporal.ChronoField.DAY_OF_MONTH; 114 {DAY_OF_MONTH, TextStyle.FULL, 1, "1"}, in data_text() 115 {DAY_OF_MONTH, TextStyle.FULL, 2, "2"}, in data_text() 116 {DAY_OF_MONTH, TextStyle.FULL, 3, "3"}, in data_text() 117 {DAY_OF_MONTH, TextStyle.FULL, 28, "28"}, in data_text() 118 {DAY_OF_MONTH, TextStyle.FULL, 29, "29"}, in data_text() 119 {DAY_OF_MONTH, TextStyle.FULL, 30, "30"}, in data_text() 120 {DAY_OF_MONTH, TextStyle.FULL, 31, "31"}, in data_text() 122 {DAY_OF_MONTH, TextStyle.SHORT, 1, "1"}, in data_text() 123 {DAY_OF_MONTH, TextStyle.SHORT, 2, "2"}, in data_text() [all …]
|
D | TCKDateTimeFormatterBuilder.java | 62 import static java.time.temporal.ChronoField.DAY_OF_MONTH; 113 .parseDefaulting(DAY_OF_MONTH, 30).toFormatter(); in test_parseDefaulting_entireDate() 123 .optionalStart().appendLiteral('-').appendValue(DAY_OF_MONTH) in test_parseDefaulting_yearOptionalMonthOptionalDay() 126 .parseDefaulting(DAY_OF_MONTH, 1).toFormatter(); in test_parseDefaulting_yearOptionalMonthOptionalDay() 151 builder.appendValue(DAY_OF_MONTH, 0); in test_appendValue_2arg_widthTooSmall() 156 builder.appendValue(DAY_OF_MONTH, 20); in test_appendValue_2arg_widthTooBig() 167 builder.appendValue(DAY_OF_MONTH, 0, 2, SignStyle.NORMAL); in test_appendValue_3arg_minWidthTooSmall() 172 builder.appendValue(DAY_OF_MONTH, 20, 2, SignStyle.NORMAL); in test_appendValue_3arg_minWidthTooBig() 177 builder.appendValue(DAY_OF_MONTH, 2, 0, SignStyle.NORMAL); in test_appendValue_3arg_maxWidthTooSmall() 182 builder.appendValue(DAY_OF_MONTH, 2, 20, SignStyle.NORMAL); in test_appendValue_3arg_maxWidthTooBig() [all …]
|
D | TCKDateTimeFormatter.java | 62 import static java.time.temporal.ChronoField.DAY_OF_MONTH; 130 .appendValue(DAY_OF_MONTH, 1, 2, SignStyle.NOT_NEGATIVE) in setUp() 177 … .appendValue(DAY_OF_MONTH).appendLiteral('-').appendValue(DAY_OF_YEAR).toFormatter(); in test_resolverFields_selectOneDateResolveYMD() 178 DateTimeFormatter f = base.withResolverFields(YEAR, MONTH_OF_YEAR, DAY_OF_MONTH); in test_resolverFields_selectOneDateResolveYMD() 193 … .appendValue(DAY_OF_MONTH).appendLiteral('-').appendValue(DAY_OF_YEAR).toFormatter(); in test_resolverFields_selectOneDateResolveYD() 456 assertEquals(result.isSupported(DAY_OF_MONTH), true); in test_parse_CharSequence() 457 assertEquals(result.getLong(DAY_OF_MONTH), 30L); in test_parse_CharSequence() 467 assertEquals(result.isSupported(DAY_OF_MONTH), true); in test_parse_CharSequence_resolved() 471 assertEquals(result.getLong(DAY_OF_MONTH), 30L); in test_parse_CharSequence_resolved() 491 assertEquals(result.isSupported(DAY_OF_MONTH), true); in test_parse_CharSequence_ParsePosition() [all …]
|
/libcore/ojluni/src/test/java/time/test/java/time/chrono/ |
D | TestIsoChronoImpl.java | 59 import static java.time.temporal.ChronoField.DAY_OF_MONTH; 102 cal.set(Calendar.DAY_OF_MONTH, isoDate.get(DAY_OF_MONTH)); in test_IsoChrono_vsCalendar() 105 …assertEquals(isoDate.get(DAY_OF_MONTH), cal.get(Calendar.DAY_OF_MONTH), "Day mismatch in " + isoDa… in test_IsoChrono_vsCalendar() 110 cal.add(Calendar.DAY_OF_MONTH, 1); in test_IsoChrono_vsCalendar() 133 cal.set(Calendar.DAY_OF_MONTH, isoDate.get(DAY_OF_MONTH)); in test_DayOfWeek_IsoChronology_vsCalendar() 137 …assertEquals(isoDate.get(DAY_OF_MONTH), cal.get(Calendar.DAY_OF_MONTH), "Day mismatch in " + isoDa… in test_DayOfWeek_IsoChronology_vsCalendar() 162 cal.add(Calendar.DAY_OF_MONTH, 1); in test_DayOfWeek_IsoChronology_vsCalendar()
|
D | TestThaiBuddhistChronoImpl.java | 105 cal.set(Calendar.DAY_OF_MONTH, thaiDate.get(ChronoField.DAY_OF_MONTH)); in test_ThaiBuddhistChrono_vsCalendar() 108 …assertEquals(thaiDate.get(ChronoField.DAY_OF_MONTH), cal.get(Calendar.DAY_OF_MONTH), "Day mismatch… in test_ThaiBuddhistChrono_vsCalendar() 113 cal.add(Calendar.DAY_OF_MONTH, 1); in test_ThaiBuddhistChrono_vsCalendar() 119 … cal.get(Calendar.YEAR), cal.get(Calendar.MONTH) + 1, cal.get(Calendar.DAY_OF_MONTH)); in calToString()
|
D | TestJapaneseChronoImpl.java | 114 …assertEquals(jDate.get(ChronoField.DAY_OF_MONTH), cal.get(Calendar.DAY_OF_MONTH), "Day mismatch in… in test_JapaneseChrono_vsCalendar() 119 cal.add(Calendar.DAY_OF_MONTH, 1); in test_JapaneseChrono_vsCalendar()
|
D | TestExampleCode.java | 90 int day = now1.get(ChronoField.DAY_OF_MONTH); in test_chronoPackageExample() 106 .with(ChronoField.DAY_OF_MONTH, 1) in test_chronoPackageExample() 150 int day = now1.get(ChronoField.DAY_OF_MONTH); in test_calendarPackageExample() 159 .with(ChronoField.DAY_OF_MONTH, 1) in test_calendarPackageExample()
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | TemporalAdjusters.java | 64 import static java.time.temporal.ChronoField.DAY_OF_MONTH; 166 return (temporal) -> temporal.with(DAY_OF_MONTH, 1); in firstDayOfMonth() 189 return (temporal) -> temporal.with(DAY_OF_MONTH, temporal.range(DAY_OF_MONTH).getMaximum()); in lastDayOfMonth() 209 return (temporal) -> temporal.with(DAY_OF_MONTH, 1).plus(1, MONTHS); in firstDayOfNextMonth() 351 Temporal temp = temporal.with(DAY_OF_MONTH, 1); in dayOfWeekInMonth() 359 … Temporal temp = temporal.with(DAY_OF_MONTH, temporal.range(DAY_OF_MONTH).getMaximum()); in dayOfWeekInMonth()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | GregorianCalendarTest.java | 70 .get(Calendar.DAY_OF_MONTH)); in test_ConstructorIII() 88 .get(Calendar.DAY_OF_MONTH)); in test_ConstructorIIIII() 117 .get(Calendar.DAY_OF_MONTH)); in test_ConstructorIIIIII() 169 c1.set(Calendar.DAY_OF_MONTH, 2); in test_ConstructorLjava_util_TimeZone() 310 28, gc1.getActualMaximum(Calendar.DAY_OF_MONTH)); in test_getActualMaximumI() 312 29, gc2.getActualMaximum(Calendar.DAY_OF_MONTH)); in test_getActualMaximumI() 314 28, gc3.getActualMaximum(Calendar.DAY_OF_MONTH)); in test_getActualMaximumI() 316 29, gc4.getActualMaximum(Calendar.DAY_OF_MONTH)); in test_getActualMaximumI() 318 31, gc5.getActualMaximum(Calendar.DAY_OF_MONTH)); in test_getActualMaximumI() 320 30, gc6.getActualMaximum(Calendar.DAY_OF_MONTH)); in test_getActualMaximumI() [all …]
|
/libcore/ojluni/src/main/java/java/time/ |
D | MonthDay.java | 64 import static java.time.temporal.ChronoField.DAY_OF_MONTH; 135 .appendValue(DAY_OF_MONTH, 2) 213 DAY_OF_MONTH.checkValidValue(dayOfMonth); in of() 269 return of(temporal.get(MONTH_OF_YEAR), temporal.get(DAY_OF_MONTH)); in from() 345 return field == MONTH_OF_YEAR || field == DAY_OF_MONTH; in isSupported() 377 } else if (field == DAY_OF_MONTH) { in range() 442 case DAY_OF_MONTH: return day; in getLong() 626 … return temporal.with(DAY_OF_MONTH, Math.min(temporal.range(DAY_OF_MONTH).getMaximum(), day)); in adjustInto()
|
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/ |
D | TCKChronoField.java | 66 import static java.time.temporal.ChronoField.DAY_OF_MONTH; 127 {DAY_OF_MONTH, DAYS, MONTHS}, in data_fieldUnit() 160 {DAY_OF_MONTH, true, false}, in data_fieldBased() 205 {DAY_OF_MONTH, LocalDate.of(2000, 2, 29), true, 29}, in data_fieldAndAccessor() 206 {DAY_OF_MONTH, LocalDateTime.of(2000, 2, 29, 5, 4, 3, 200), true, 29}, in data_fieldAndAccessor() 228 {DAY_OF_MONTH, LocalTime.of(5, 4, 3, 200), false, -1}, in data_fieldAndAccessor() 255 assertEquals(DAY_OF_MONTH.range(), ValueRange.of(1, 28, 31)); in test_range() 256 assertEquals(DAY_OF_MONTH.rangeRefinedBy(LocalDate.of(2000, 2, 29)), ValueRange.of(1, 29)); in test_range()
|
/libcore/luni/src/test/java/libcore/java/text/ |
D | OldDateFormatTest.java | 172 c.set(Calendar.DAY_OF_MONTH, 32); in test_isLenient() 173 c.get(Calendar.DAY_OF_MONTH); in test_isLenient() 179 c.set(Calendar.DAY_OF_MONTH, 32); in test_isLenient() 180 c.get(Calendar.DAY_OF_MONTH); in test_isLenient() 189 c.set(Calendar.DAY_OF_MONTH, 32); in test_isLenient() 190 c.get(Calendar.DAY_OF_MONTH); in test_isLenient() 199 c.set(Calendar.DAY_OF_MONTH, 32); in test_isLenient() 200 c.get(Calendar.DAY_OF_MONTH); in test_isLenient() 451 c.set(Calendar.DAY_OF_MONTH, 32); in test_setLenientZ() 452 c.get(Calendar.DAY_OF_MONTH); in test_setLenientZ() [all …]
|
/libcore/ojluni/src/test/java/time/test/java/time/temporal/ |
D | TestDateTimeBuilderCombinations.java | 66 import static java.time.temporal.ChronoField.DAY_OF_MONTH; 94 …{YEAR, 2012, MONTH_OF_YEAR, 6, DAY_OF_MONTH, 3, null, null, LocalDate.class, LocalDate.of(2012, 6,… in data_combine() 95 …{PROLEPTIC_MONTH, 2012 * 12 + 6 - 1, DAY_OF_MONTH, 3, null, null, null, null, LocalDate.class, Loc… in data_combine() 173 {DAY_OF_MONTH, 23, DAY_OF_MONTH, 23}, in data_normalized()
|
/libcore/ojluni/src/main/java/java/util/ |
D | GregorianCalendar.java | 704 this.set(DAY_OF_MONTH, dayOfMonth); in GregorianCalendar() 1040 case DAY_OF_MONTH: // synonym of DATE 1214 if (internalGet(DAY_OF_MONTH) != d.getDayOfMonth()) { in roll() 1217 internalGet(DAY_OF_MONTH)); in roll() 1258 if (internalGet(DAY_OF_MONTH) > monthLen) { in roll() 1259 set(DAY_OF_MONTH, monthLen); in roll() 1270 int monthLen = getActualMaximum(DAY_OF_MONTH); in roll() 1271 if (internalGet(DAY_OF_MONTH) > monthLen) { in roll() 1272 set(DAY_OF_MONTH, monthLen); in roll() 1353 set(DAY_OF_MONTH, d.getDayOfMonth()); in roll() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | DataFormatFieldTest.java | 49 .ofCalendarField(Calendar.DAY_OF_MONTH); in test_ConstructorLjava_lang_StringLjava_lang_String() 51 DateFormat.Field.DAY_OF_MONTH, realField2); in test_ConstructorLjava_lang_StringLjava_lang_String() 98 .ofCalendarField(Calendar.DAY_OF_MONTH); in test_Constructor2() 100 DateFormat.Field.DAY_OF_MONTH, realField2); in test_Constructor2()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | GregorianCalendarTest.java | 126 assertEquals(18, gc.get(Calendar.DAY_OF_MONTH)); in test_fieldsAffectedByGregorianCutOver() 132 assertEquals(18, gc.getActualMaximum(Calendar.DAY_OF_MONTH)); in test_fieldsAffectedByGregorianCutOver() 133 assertEquals(18, gc.getLeastMaximum(Calendar.DAY_OF_MONTH)); in test_fieldsAffectedByGregorianCutOver() 147 assertEquals(1, gc.get(Calendar.DAY_OF_MONTH)); in test_fieldsAffectedByGregorianCutOver() 153 assertEquals(31, gc.getActualMaximum(Calendar.DAY_OF_MONTH)); in test_fieldsAffectedByGregorianCutOver() 154 assertEquals(28, gc.getLeastMaximum(Calendar.DAY_OF_MONTH)); in test_fieldsAffectedByGregorianCutOver() 222 assertEquals(29, cal.get(Calendar.DAY_OF_MONTH)); in test_setWeekDate() 228 assertEquals(22, cal.get(Calendar.DAY_OF_MONTH)); in test_setWeekDate() 297 assertEquals(3, calendar.get(Calendar.DAY_OF_MONTH)); in test_fromZonedDateTime()
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
D | CopticDate.java | 62 import static java.time.temporal.ChronoField.DAY_OF_MONTH; 156 range.checkValidValue(dayOfMonth, DAY_OF_MONTH); in CopticDate() 196 case DAY_OF_MONTH: return ValueRange.of(1, lengthOfMonth()); in range() 217 case DAY_OF_MONTH: return day; in getLong() 242 case DAY_OF_MONTH: return resolvePreviousValid(prolepticYear, month, nvalue); in with() 340 long dom = getLong(DAY_OF_MONTH); in toString()
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/serial/ |
D | TCKChronoLocalDateSerialization.java | 59 import static java.time.temporal.ChronoField.DAY_OF_MONTH; 124 dos.writeByte(date.get(DAY_OF_MONTH)); in test_serialization_format() 157 dos.writeByte(date.get(DAY_OF_MONTH)); in test_hijrahSerialization_format()
|
/libcore/luni/src/test/java/libcore/java/time/chrono/ |
D | ThaiBuddhistChronologyTest.java | 95 assertEquals(LocalDate.from(date).range(ChronoField.DAY_OF_MONTH), in test_ThaiBuddhistDate_range() 96 date.range(ChronoField.DAY_OF_MONTH)); in test_ThaiBuddhistDate_range() 120 assertEquals(5, date.getLong(ChronoField.DAY_OF_MONTH)); in test_ThaiBuddhistDate_getLong()
|
D | MinguoChronologyTest.java | 93 assertEquals(LocalDate.from(date).range(ChronoField.DAY_OF_MONTH), in test_MinguoDate_range() 94 date.range(ChronoField.DAY_OF_MONTH)); in test_MinguoDate_range() 118 assertEquals(5, date.getLong(ChronoField.DAY_OF_MONTH)); in test_MinguoDate_getLong()
|