Searched refs:toFormatter (Results 1 - 25 of 46) sorted by relevance

12

/openjdk10/jdk/test/java/time/test/java/time/format/
H A DAbstractTestPrinterParser.java117 return builder.toFormatter(locale).withDecimalStyle(decimalStyle);
121 return builder.appendLiteral(c).toFormatter(locale).withDecimalStyle(decimalStyle);
125 return builder.appendLiteral(s).toFormatter(locale).withDecimalStyle(decimalStyle);
129 return builder.appendText(field).toFormatter(locale).withDecimalStyle(decimalStyle);
133 return builder.appendText(field, style).toFormatter(locale).withDecimalStyle(decimalStyle);
137 return builder.appendValue(field, minWidth, maxWidth, signStyle).toFormatter(locale).withDecimalStyle(decimalStyle);
141 return builder.appendOffset(pattern, noOffsetText).toFormatter(locale).withDecimalStyle(decimalStyle);
145 return builder.appendPattern(pattern).toFormatter(locale).withDecimalStyle(decimalStyle);
H A DTestDateTimeFormatterBuilder.java109 DateTimeFormatter f = builder.toFormatter();
117 DateTimeFormatter f = builder.toFormatter();
124 DateTimeFormatter f = builder.toFormatter();
132 DateTimeFormatter f = builder.toFormatter();
139 DateTimeFormatter f = builder.toFormatter();
147 DateTimeFormatter f = builder.toFormatter();
160 DateTimeFormatter f = builder.toFormatter();
183 DateTimeFormatter f = builder.toFormatter();
226 DateTimeFormatter f = builder.toFormatter();
236 DateTimeFormatter f = builder.toFormatter();
[all...]
H A DTestDateTimeParsing.java94 .appendPattern("yyyy-MM-dd HH:mm:ss").toFormatter();
96 .appendPattern("yyyy-MM-dd HH:mm:ss ").appendZoneId().toFormatter();
98 .appendPattern("yyyy-MM-dd HH:mm:ss ").appendOffsetId().toFormatter();
102 .appendInstant().toFormatter();
106 .appendInstant().appendLiteral(' ').appendOffsetId().toFormatter();
108 .appendInstant().appendLiteral(' ').appendValue(OFFSET_SECONDS).toFormatter();
110 .appendValue(INSTANT_SECONDS).toFormatter();
113 .appendValue(INSTANT_SECONDS).appendLiteral('.').appendValue(NANO_OF_SECOND).toFormatter();
116 .appendValue(INSTANT_SECONDS).appendLiteral(' ').appendValue(OFFSET_SECONDS).toFormatter();
H A DTestReducedPrinter.java84 return builder.appendValueReduced(field, width, width, baseValue).toFormatter(locale).withDecimalStyle(decimalStyle);
88 return builder.appendValueReduced(field, minWidth, maxWidth, baseValue).toFormatter(locale).withDecimalStyle(decimalStyle);
92 return builder.appendValueReduced(field, minWidth, maxWidth, LocalDate.of(baseValue, 1, 1)).toFormatter(locale).withDecimalStyle(decimalStyle);
272 DateTimeFormatter dtf = builder.toFormatter();
H A DTestReducedParser.java100 return builder.appendValueReduced(field, width, width, baseValue).toFormatter(locale).withDecimalStyle(decimalStyle);
104 return builder.appendValueReduced(field, minWidth, maxWidth, baseValue).toFormatter(locale).withDecimalStyle(decimalStyle);
108 return builder.appendValueReduced(field, minWidth, maxWidth, LocalDate.of(baseValue, 1, 1)).toFormatter(locale).withDecimalStyle(decimalStyle);
372 DateTimeFormatter dtf = builder.toFormatter();
416 .toFormatter()
434 .toFormatter()
456 .toFormatter();
480 .toFormatter();
/openjdk10/jdk/test/java/time/tck/java/time/format/
H A DTCKChronoPrinterParser.java98 builder.appendChronologyId().toFormatter().parseUnresolved("ISO", new ParsePosition(-1));
103 builder.appendChronologyId().toFormatter().parseUnresolved("ISO", new ParsePosition(4));
123 TemporalAccessor parsed = builder.toFormatter().parseUnresolved(text, pos);
132 TemporalAccessor parsed = builder.toFormatter().parseUnresolved(text.toLowerCase(Locale.ENGLISH), pos);
141 TemporalAccessor parsed = builder.toFormatter().parseUnresolved(text.toLowerCase(Locale.ENGLISH), pos);
161 TemporalAccessor parsed = builder.toFormatter().parseUnresolved(text, pos);
H A DTCKPadPrinterParser.java95 builder.toFormatter().parseUnresolved("--Z", new ParsePosition(-1));
101 builder.toFormatter().parseUnresolved("--Z", new ParsePosition(4));
132 TemporalAccessor parsed = builder.toFormatter().parseUnresolved(text, pos);
173 TemporalAccessor parsed = builder.toFormatter().parseUnresolved(text, pos);
188 TemporalAccessor parsed = builder.toFormatter().parseUnresolved("--HELLO-", pos);
197 TemporalAccessor parsed = builder.toFormatter().parseUnresolved("--2", pos);
208 TemporalAccessor parsed = builder.toFormatter().parseUnresolved("----", pos);
217 TemporalAccessor parsed = builder.toFormatter().parseUnresolved("----", pos);
H A DTCKDateTimeFormatterBuilder.java112 DateTimeFormatter f = builder.toFormatter();
121 .parseDefaulting(DAY_OF_MONTH, 30).toFormatter();
134 .parseDefaulting(DAY_OF_MONTH, 1).toFormatter();
538 DateTimeFormatter f = builder.toFormatter();
546 DateTimeFormatter f = builder.toFormatter();
617 DateTimeFormatter df = new DateTimeFormatterBuilder().appendPattern(pattern).toFormatter();
644 DateTimeFormatter df = new DateTimeFormatterBuilder().appendPattern(pattern).toFormatter(Locale.US);
687 assertEquals(builder.toFormatter().format(LocalDate.of(2013, 2, 1)), "2: 1");
699 assertEquals(builder.toFormatter().format(LocalDate.of(2013, 2, 1)), "2:-1");
713 assertEquals(builder.toFormatter()
[all...]
H A DTCKDateTimeParseResolver.java154 DateTimeFormatter f = new DateTimeFormatterBuilder().appendValue(field1).toFormatter();
193 .appendValue(field2).toFormatter();
225 .appendValue(field3).toFormatter();
259 DateTimeFormatter f = new DateTimeFormatterBuilder().appendValue(field1).toFormatter();
285 DateTimeFormatter f = new DateTimeFormatterBuilder().appendValue(field1).toFormatter();
310 DateTimeFormatter f = new DateTimeFormatterBuilder().appendValue(field1).toFormatter();
341 .appendValue(field2).toFormatter();
389 .appendValue(field2).toFormatter();
476 .appendValue(field2).toFormatter();
509 .appendValue(field3).toFormatter();
[all...]
H A DTCKInstantPrinterParser.java113 DateTimeFormatter f = new DateTimeFormatterBuilder().appendInstant().toFormatter();
191 DateTimeFormatter f = new DateTimeFormatterBuilder().appendInstant(fractionalDigits).toFormatter();
227 DateTimeFormatter f = new DateTimeFormatterBuilder().appendInstant(-1).toFormatter();
235 DateTimeFormatter f = new DateTimeFormatterBuilder().appendInstant(9).toFormatter();
254 DateTimeFormatter f = new DateTimeFormatterBuilder().appendInstant(-1).toFormatter();
266 DateTimeFormatter f = new DateTimeFormatterBuilder().appendInstant(-1).toFormatter();
H A DTCKDateTimeTextPrinting.java140 DateTimeFormatter f = builder.appendText(field, style).toFormatter(Locale.ENGLISH);
150 DateTimeFormatter f = builder.appendText(field).toFormatter(Locale.ENGLISH);
175 DateTimeFormatter f = builder.toFormatter();
189 DateTimeFormatter f = builder.toFormatter();
201 DateTimeFormatter f = builder.toFormatter();
H A DTCKLocalizedFieldParser.java128 DateTimeFormatter dtf = b.toFormatter(locale);
160 DateTimeFormatter dtf = b.toFormatter(locale);
197 DateTimeFormatter dtf = b.toFormatter(locale);
226 .appendPattern(pattern).toFormatter(Locale.US);
249 .appendPattern(pattern).toFormatter(Locale.US);
262 .appendPattern(pattern).toFormatter(Locale.US);
H A DTCKResolverStyle.java121 DateTimeFormatter optionalFormatter = new DateTimeFormatterBuilder().appendLiteral(" ").appendText(ChronoField.ERA, eraMap).toFormatter();
123 DateTimeFormatter formatter = builder.appendOptional(optionalFormatter).toFormatter();
H A DTCKOffsetPrinterParser.java475 String output = builder.toFormatter().format(zdt);
497 String output = builder.toFormatter().format(zdt);
525 String output = builder.toFormatter().format(zdt);
535 DateTimeFormatter f1 = new DateTimeFormatterBuilder().appendPattern("Z").toFormatter();
539 DateTimeFormatter f2 = new DateTimeFormatterBuilder().appendPattern("ZZ").toFormatter();
543 DateTimeFormatter f3 = new DateTimeFormatterBuilder().appendPattern("ZZZ").toFormatter();
548 DateTimeFormatter f = new DateTimeFormatterBuilder().appendPattern("ZZZZZ").toFormatter();
560 .toFormatter();
567 .toFormatter();
573 .toFormatter();
[all...]
H A DTCKLocalizedFieldPrinter.java101 String result = b.toFormatter(locale).format(date);
H A DTCKLocalizedPrinterParser.java133 DateTimeFormatter f = builder.appendLocalized(dateStyle, null).toFormatter(locale);
145 DateTimeFormatter f = builder.appendLocalized(dateStyle, null).toFormatter(locale);
186 DateTimeFormatter f = builder.appendLocalized(null, timeStyle).toFormatter(locale);
198 DateTimeFormatter f = builder.appendLocalized(null, timeStyle).toFormatter(locale);
H A DTCKZoneIdPrinterParser.java118 String output = builder.toFormatter().format(zdt);
126 String output = builder.toFormatter().format(zdt);
247 TemporalAccessor parsed = builder.toFormatter().parseUnresolved(lcText, pos);
299 TemporalAccessor parsed = builder.toFormatter().parseUnresolved(lcText, pos);
318 TemporalAccessor parsed = builder.toFormatter().parseUnresolved(text, pos);
/openjdk10/jdk/src/java.base/share/classes/java/time/format/
H A DDateTimeFormatter.java563 return new DateTimeFormatterBuilder().appendPattern(pattern).toFormatter();
587 return new DateTimeFormatterBuilder().appendPattern(pattern).toFormatter(locale);
616 .toFormatter(ResolverStyle.SMART, IsoChronology.INSTANCE);
647 .toFormatter(ResolverStyle.SMART, IsoChronology.INSTANCE);
678 .toFormatter(ResolverStyle.SMART, IsoChronology.INSTANCE);
711 .toFormatter(ResolverStyle.SMART, IsoChronology.INSTANCE);
746 .toFormatter(ResolverStyle.STRICT, IsoChronology.INSTANCE);
774 .toFormatter(ResolverStyle.STRICT, IsoChronology.INSTANCE);
807 .toFormatter(ResolverStyle.STRICT, IsoChronology.INSTANCE);
848 .toFormatter(ResolverStyl
[all...]
/openjdk10/jdk/src/java.base/share/classes/java/time/chrono/
H A DHijrahEra.java171 .toFormatter(locale)
H A DThaiBuddhistEra.java171 .toFormatter(locale)
H A DMinguoEra.java171 .toFormatter(locale)
H A DEra.java321 return new DateTimeFormatterBuilder().appendText(ERA, style).toFormatter(locale).format(this);
/openjdk10/jdk/test/java/time/tck/java/time/temporal/
H A DTCKIsoFields.java160 .toFormatter().withResolverStyle(ResolverStyle.STRICT);
171 .toFormatter().withResolverStyle(ResolverStyle.SMART);
182 .toFormatter().withResolverStyle(ResolverStyle.LENIENT);
217 .toFormatter().withResolverStyle(ResolverStyle.STRICT);
227 .toFormatter().withResolverStyle(ResolverStyle.SMART);
247 .toFormatter().withResolverStyle(ResolverStyle.LENIENT);
359 .toFormatter().withResolverStyle(ResolverStyle.STRICT);
370 .toFormatter().withResolverStyle(ResolverStyle.SMART);
381 .toFormatter().withResolverStyle(ResolverStyle.LENIENT);
409 .toFormatter()
[all...]
H A DTCKJulianFields.java145 .toFormatter().withResolverStyle(ResolverStyle.STRICT);
153 .toFormatter().withResolverStyle(ResolverStyle.SMART);
161 .toFormatter().withResolverStyle(ResolverStyle.LENIENT);
/openjdk10/jdk/test/sun/util/resources/cldr/
H A DBug8134250.java54 DateTimeFormatter dtf = dtfb.toFormatter(Locale.UK)

Completed in 342 milliseconds

12