/libcore/luni/src/test/java/libcore/java/time/format/ |
D | DateTimeFormatterTest.java | 20 import java.time.format.DateTimeFormatterBuilder; 41 new DateTimeFormatterBuilder().toFormatter(), in test_getDecimalStyle() 42 new DateTimeFormatterBuilder().toFormatter(Locale.ROOT), in test_getDecimalStyle() 43 new DateTimeFormatterBuilder().toFormatter(Locale.ENGLISH), in test_getDecimalStyle() 44 new DateTimeFormatterBuilder().toFormatter(arLocale), in test_getDecimalStyle()
|
D | DateTimeFormatterBuilderTest.java | 27 import java.time.format.DateTimeFormatterBuilder; 44 DateTimeFormatter formatter = new DateTimeFormatterBuilder() in test_append_DateTimeFormatter() 53 new DateTimeFormatterBuilder().appendZoneRegionId().toFormatter(); in test_appendZoneRegionId_format() 64 new DateTimeFormatterBuilder().appendZoneRegionId().toFormatter(); in test_appendZoneRegionId_format_offset() 75 DateTimeFormatter formatter = new DateTimeFormatterBuilder().appendZoneRegionId() in test_appendZoneRegionId_parse()
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKInstantPrinterParser.java | 71 import java.time.format.DateTimeFormatterBuilder; 113 DateTimeFormatter f = new DateTimeFormatterBuilder().appendInstant().toFormatter(); in test_print_grouped() 191 …DateTimeFormatter f = new DateTimeFormatterBuilder().appendInstant(fractionalDigits).toFormatter(); in test_print_digits() 227 DateTimeFormatter f = new DateTimeFormatterBuilder().appendInstant(-1).toFormatter(); in test_parse_digitsMinusOne() 235 DateTimeFormatter f = new DateTimeFormatterBuilder().appendInstant(9).toFormatter(); in test_parse_digitsNine() 254 DateTimeFormatter f = new DateTimeFormatterBuilder().appendInstant(-1).toFormatter(); in test_parse_endOfDay() 266 DateTimeFormatter f = new DateTimeFormatterBuilder().appendInstant(-1).toFormatter(); in test_parse_leapSecond() 278 new DateTimeFormatterBuilder().appendInstant(-2); in test_appendInstant_tooSmall() 283 new DateTimeFormatterBuilder().appendInstant(10); in test_appendInstant_tooBig()
|
D | TCKLocalizedFieldParser.java | 68 import java.time.format.DateTimeFormatterBuilder; 118 DateTimeFormatterBuilder b in test_parse_textField() 119 = new DateTimeFormatterBuilder().appendPattern(pattern); in test_parse_textField() 151 DateTimeFormatterBuilder b = new DateTimeFormatterBuilder().appendPattern(pattern); in test_parse_textLocalDate() 188 DateTimeFormatterBuilder b = new DateTimeFormatterBuilder().appendPattern(pattern); in test_parse_WeekBasedYear()
|
D | TCKDateTimeParseResolver.java | 113 import java.time.format.DateTimeFormatterBuilder; 154 DateTimeFormatter f = new DateTimeFormatterBuilder().appendValue(field1).toFormatter(); in test_resolveOneNoChange() 191 DateTimeFormatter f = new DateTimeFormatterBuilder() in test_resolveTwoNoChange() 222 DateTimeFormatter f = new DateTimeFormatterBuilder() in test_resolveThreeNoChange() 259 DateTimeFormatter f = new DateTimeFormatterBuilder().appendValue(field1).toFormatter(); in test_resolveOneToField() 285 DateTimeFormatter f = new DateTimeFormatterBuilder().appendValue(field1).toFormatter(); in test_resolveOneToDate() 310 DateTimeFormatter f = new DateTimeFormatterBuilder().appendValue(field1).toFormatter(); in test_resolveOneToTime() 339 DateTimeFormatter f = new DateTimeFormatterBuilder() in test_resolveTwoToField() 387 DateTimeFormatter f = new DateTimeFormatterBuilder() in test_resolveTwoToDate() 474 DateTimeFormatter f = new DateTimeFormatterBuilder() in test_resolveTwoToTime() [all …]
|
D | TCKResolverStyle.java | 64 import java.time.format.DateTimeFormatterBuilder; 111 DateTimeFormatterBuilder builder = new DateTimeFormatterBuilder(); in test_resolverStyle() 121 …DateTimeFormatter optionalFormatter = new DateTimeFormatterBuilder().appendLiteral(" ").appendText… in test_resolverStyle()
|
D | TCKOffsetPrinterParser.java | 70 import java.time.format.DateTimeFormatterBuilder; 96 private DateTimeFormatterBuilder builder; 100 builder = new DateTimeFormatterBuilder(); in setUp() 297 DateTimeFormatter f1 = new DateTimeFormatterBuilder().appendPattern("Z").toFormatter(); in test_print_pattern_Z() 301 DateTimeFormatter f2 = new DateTimeFormatterBuilder().appendPattern("ZZ").toFormatter(); in test_print_pattern_Z() 305 … DateTimeFormatter f3 = new DateTimeFormatterBuilder().appendPattern("ZZZ").toFormatter(); in test_print_pattern_Z() 310 … DateTimeFormatter f = new DateTimeFormatterBuilder().appendPattern("ZZZZZ").toFormatter(); in test_print_pattern_Z() 321 DateTimeFormatter f = new DateTimeFormatterBuilder().appendLocalizedOffset(style) in test_print_localized() 328 f = new DateTimeFormatterBuilder().appendPattern("ZZZZ") in test_print_localized() 334 f = new DateTimeFormatterBuilder().appendPattern("OOOO") in test_print_localized() [all …]
|
D | TCKLocalizedFieldPrinter.java | 66 import java.time.format.DateTimeFormatterBuilder; 97 DateTimeFormatterBuilder b in test_localizedDayOfWeek() 98 = new DateTimeFormatterBuilder().appendPattern(pattern); in test_localizedDayOfWeek()
|
D | TCKFormatStyle.java | 64 import java.time.format.DateTimeFormatterBuilder; 111 DateTimeFormatterBuilder builder = new DateTimeFormatterBuilder(); in test_formatStyle()
|
D | TCKSignStyle.java | 63 import java.time.format.DateTimeFormatterBuilder; 120 DateTimeFormatterBuilder builder = new DateTimeFormatterBuilder(); in test_signStyle()
|
D | TCKChronoPrinterParser.java | 69 import java.time.format.DateTimeFormatterBuilder; 86 private DateTimeFormatterBuilder builder; 91 builder = new DateTimeFormatterBuilder(); in setUp()
|
D | TCKPadPrinterParser.java | 68 import java.time.format.DateTimeFormatterBuilder; 82 private DateTimeFormatterBuilder builder; 87 builder = new DateTimeFormatterBuilder(); in setUp()
|
D | TCKDateTimeFormatter.java | 95 import java.time.format.DateTimeFormatterBuilder; 129 fmt = new DateTimeFormatterBuilder().appendLiteral("ONE") in setUp() 175 DateTimeFormatter base = new DateTimeFormatterBuilder() in test_resolverFields_selectOneDateResolveYMD() 191 DateTimeFormatter base = new DateTimeFormatterBuilder() in test_resolverFields_selectOneDateResolveYD() 210 DateTimeFormatter base = new DateTimeFormatterBuilder() in test_resolverFields_ignoreCrossCheck() 226 DateTimeFormatter f = new DateTimeFormatterBuilder() in test_resolverFields_emptyList() 234 DateTimeFormatter f = new DateTimeFormatterBuilder() in test_resolverFields_listOfOneMatching() 242 DateTimeFormatter f = new DateTimeFormatterBuilder() in test_resolverFields_listOfOneNotMatching() 251 DateTimeFormatter f = new DateTimeFormatterBuilder() in test_resolverFields_listOfOneNull() 356 DateTimeFormatter test = new DateTimeFormatterBuilder() in test_format_withZone_withChronology() [all …]
|
D | TCKDateTimeTextPrinting.java | 70 import java.time.format.DateTimeFormatterBuilder; 87 private DateTimeFormatterBuilder builder; 91 builder = new DateTimeFormatterBuilder(); in setUp()
|
/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestDateTimeParsing.java | 78 import java.time.format.DateTimeFormatterBuilder; 93 private static final DateTimeFormatter LOCALFIELDS = new DateTimeFormatterBuilder() 95 private static final DateTimeFormatter LOCALFIELDS_ZONEID = new DateTimeFormatterBuilder() 97 private static final DateTimeFormatter LOCALFIELDS_OFFSETID = new DateTimeFormatterBuilder() 101 private static final DateTimeFormatter INSTANT = new DateTimeFormatterBuilder() 105 private static final DateTimeFormatter INSTANT_OFFSETID = new DateTimeFormatterBuilder() 107 private static final DateTimeFormatter INSTANT_OFFSETSECONDS = new DateTimeFormatterBuilder() 109 private static final DateTimeFormatter INSTANTSECONDS = new DateTimeFormatterBuilder() 112 private static final DateTimeFormatter INSTANTSECONDS_NOS = new DateTimeFormatterBuilder() 115 …rivate static final DateTimeFormatter INSTANTSECONDS_OFFSETSECONDS = new DateTimeFormatterBuilder()
|
D | AbstractTestPrinterParser.java | 68 import java.time.format.DateTimeFormatterBuilder; 85 protected DateTimeFormatterBuilder builder; 94 builder = new DateTimeFormatterBuilder(); in setUp()
|
D | TestZoneTextPrinterParser.java | 33 import java.time.format.DateTimeFormatterBuilder; 64 return new DateTimeFormatterBuilder().appendZoneText(style) in getFormatter() 192 DateTimeFormatter fmt = new DateTimeFormatterBuilder().appendZoneText(style, preferred) in test_ParseText() 249 DateTimeFormatterBuilder db = new DateTimeFormatterBuilder(); in getFormatter()
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | DateTimeFormatter.java | 85 import java.time.format.DateTimeFormatterBuilder.CompositePrinterParser; 536 return new DateTimeFormatterBuilder().appendPattern(pattern).toFormatter(); in ofPattern() 560 return new DateTimeFormatterBuilder().appendPattern(pattern).toFormatter(locale); in ofPattern() 588 return new DateTimeFormatterBuilder().appendLocalized(dateStyle, null) in ofLocalizedDate() 616 return new DateTimeFormatterBuilder().appendLocalized(null, timeStyle) in ofLocalizedTime() 644 return new DateTimeFormatterBuilder().appendLocalized(dateTimeStyle, dateTimeStyle) in ofLocalizedDateTime() 674 return new DateTimeFormatterBuilder().appendLocalized(dateStyle, timeStyle) in ofLocalizedDateTime() 704 ISO_LOCAL_DATE = new DateTimeFormatterBuilder() 734 ISO_OFFSET_DATE = new DateTimeFormatterBuilder() 766 ISO_DATE = new DateTimeFormatterBuilder() [all …]
|
D | DateTimeFormatterBuilder.java | 154 public final class DateTimeFormatterBuilder { class 167 private DateTimeFormatterBuilder active = this; 171 private final DateTimeFormatterBuilder parent; 240 public DateTimeFormatterBuilder() { in DateTimeFormatterBuilder() method in DateTimeFormatterBuilder 252 private DateTimeFormatterBuilder(DateTimeFormatterBuilder parent, boolean optional) { in DateTimeFormatterBuilder() method in DateTimeFormatterBuilder 277 public DateTimeFormatterBuilder parseCaseSensitive() { in parseCaseSensitive() 297 public DateTimeFormatterBuilder parseCaseInsensitive() { in parseCaseInsensitive() 316 public DateTimeFormatterBuilder parseStrict() { in parseStrict() 335 public DateTimeFormatterBuilder parseLenient() { in parseLenient() 368 public DateTimeFormatterBuilder parseDefaulting(TemporalField field, long value) { in parseDefaulting() [all …]
|
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/ |
D | TCKIsoFields.java | 75 import java.time.format.DateTimeFormatterBuilder; 153 DateTimeFormatter f = new DateTimeFormatterBuilder() in test_parse_quarters() 164 DateTimeFormatter f = new DateTimeFormatterBuilder() in test_parse_quarters_SMART() 175 DateTimeFormatter f = new DateTimeFormatterBuilder() in test_parse_quarters_LENIENT() 210 DateTimeFormatter f = new DateTimeFormatterBuilder() in test_parse_parseLenientQuarter_STRICT() 220 DateTimeFormatter f = new DateTimeFormatterBuilder() in test_parse_parseLenientQuarter_SMART() 240 DateTimeFormatter f = new DateTimeFormatterBuilder() in test_parse_parseLenientQuarter_LENIENT() 352 DateTimeFormatter f = new DateTimeFormatterBuilder() in test_parse_weeks_STRICT() 363 DateTimeFormatter f = new DateTimeFormatterBuilder() in test_parse_weeks_SMART() 374 DateTimeFormatter f = new DateTimeFormatterBuilder() in test_parse_weeks_LENIENT() [all …]
|
D | TCKJulianFields.java | 67 import java.time.format.DateTimeFormatterBuilder; 144 DateTimeFormatter f = new DateTimeFormatterBuilder().appendValue(field) in test_samples_parse_STRICT() 152 DateTimeFormatter f = new DateTimeFormatterBuilder().appendValue(field) in test_samples_parse_SMART() 160 DateTimeFormatter f = new DateTimeFormatterBuilder().appendValue(field) in test_samples_parse_LENIENT()
|
D | TCKWeekFields.java | 78 import java.time.format.DateTimeFormatterBuilder; 385 DateTimeFormatter f = new DateTimeFormatterBuilder() in test_parse_resolve_localizedWom() 406 DateTimeFormatter f = new DateTimeFormatterBuilder() in test_parse_resolve_localizedWom_lenient() 427 DateTimeFormatter f = new DateTimeFormatterBuilder() in test_parse_resolve_localizedWom_strict() 453 DateTimeFormatter f = new DateTimeFormatterBuilder() in test_parse_resolve_localizedWomDow() 475 DateTimeFormatter f = new DateTimeFormatterBuilder() in test_parse_resolve_localizedWomDow_lenient() 500 DateTimeFormatter f = new DateTimeFormatterBuilder() in test_parse_resolve_localizedWoy() 520 DateTimeFormatter f = new DateTimeFormatterBuilder() in test_parse_resolve_localizedWoy_lenient() 540 DateTimeFormatter f = new DateTimeFormatterBuilder() in test_parse_resolve_localizedWoy_strict() 564 DateTimeFormatter f = new DateTimeFormatterBuilder() in test_parse_resolve_localizedWoyDow() [all …]
|
/libcore/ojluni/src/test/java/time/test/java/time/temporal/ |
D | TestDateTimeBuilderCombinations.java | 79 import java.time.format.DateTimeFormatterBuilder; 134 DateTimeFormatterBuilder dtfb = new DateTimeFormatterBuilder(); in test_derive() 201 DateTimeFormatter f = new DateTimeFormatterBuilder().appendValue(field1).toFormatter(); in test_normalized()
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | Era.java | 69 import java.time.format.DateTimeFormatterBuilder; 321 … return new DateTimeFormatterBuilder().appendText(ERA, style).toFormatter(locale).format(this); in getDisplayName()
|
/libcore/ojluni/src/main/java/java/time/ |
D | DayOfWeek.java | 67 import java.time.format.DateTimeFormatterBuilder; 227 …return new DateTimeFormatterBuilder().appendText(DAY_OF_WEEK, style).toFormatter(locale).format(th… in getDisplayName()
|