Home
last modified time | relevance | path

Searched refs:ofPattern (Results 1 – 25 of 25) sorted by relevance

/libcore/ojluni/src/test/java/time/test/java/time/format/
DTestDateTimeFormatter.java150 DateTimeFormatter f = DateTimeFormatter.ofPattern("yyyy-mm-dd"); in assertGoodErrorDate()
165 DateTimeFormatter f = DateTimeFormatter.ofPattern("HH:MM:ss"); in assertGoodErrorTime()
181 DateTimeFormatter f = DateTimeFormatter.ofPattern("HH:mm:ss"); in test_parsed_toString_resolvedTime()
189 DateTimeFormatter f = DateTimeFormatter.ofPattern("yyyy-MM-dd"); in test_parsed_toString_resolvedDate()
197 DateTimeFormatter f = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"); in test_parsed_toString_resolvedDateTime()
216 DateTimeFormatter fmt = DateTimeFormatter.ofPattern(pattern); in test_throws_message()
DTestUnicodeExtension.java341 Object[][] ofPattern() { in ofPattern() method in TestUnicodeExtension
907 DateTimeFormatter.ofPattern(PATTERN, locale); in test_ofPattern()
DTestTextParserWithLocale.java221 DateTimeFormatter fmt = DateTimeFormatter.ofPattern("[GGG ]yyy-MM-dd") in test_chronoLocalDate()
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKLocalizedOffsetIdPrinterParser.java39 DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss.S O") in test_localized_offset_parse()
DTCKLocalizedFieldPrinter.java124 DateTimeFormatter dtf = DateTimeFormatter.ofPattern(pattern, locale); in test_print_WeekBasedYear()
DTCKDateTimeFormatterBuilder.java597 DateTimeFormatter df = DateTimeFormatter.ofPattern(pattern, Locale.US); in test_appendZoneText_formatGenericTimeZonePatterns()
671 DateTimeFormatter df = DateTimeFormatter.ofPattern(pattern, Locale.US).withZone(zId); in test_appendZoneText_parseNonGenricTimeZonePatterns_2()
997 DateTimeFormatter.ofPattern(pattern).parse(input); in test_modJulianFieldPattern()
1052 DateTimeFormatter.ofPattern("DDD").parse("1234"); in test_dayOfYearFieldInvalidValue()
1058 DateTimeFormatter.ofPattern("yyyyDDHHmmss").parse("201610123456"); in test_dayOfYearFieldInvalidAdacentValueParsingPattern()
1107 DateTimeFormatter.ofPattern("yyyyAA").parse("201610"); in test_secondsPatternInvalidAdacentValueParsingPattern()
1266 DateTimeFormatter dtf = DateTimeFormatter.ofPattern(pattern); in test_adjacent_fraction()
DTCKDateTimeFormatter.java122 private static final DateTimeFormatter BASIC_FORMATTER = DateTimeFormatter.ofPattern("'ONE'd");
123 …private static final DateTimeFormatter DATE_FORMATTER = DateTimeFormatter.ofPattern("'ONE'yyyy MM …
612 DateTimeFormatter test = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm[XXX]"); in test_parseBest_firstOption()
620 DateTimeFormatter test = DateTimeFormatter.ofPattern("yyyy-MM-dd[ HH:mm[XXX]]"); in test_parseBest_secondOption()
627 DateTimeFormatter test = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm[XXX]"); in test_parseBest_String_parseError()
DTCKDateTimeFormatters.java129 DateTimeFormatter test = DateTimeFormatter.ofPattern("d MMM yyyy"); in test_pattern_String()
138 DateTimeFormatter.ofPattern("p"); in test_pattern_String_invalid()
143 DateTimeFormatter.ofPattern(null); in test_pattern_String_null()
151 DateTimeFormatter test = DateTimeFormatter.ofPattern("d MMM yyyy", Locale.UK); in test_pattern_StringLocale()
158 DateTimeFormatter.ofPattern("p", Locale.UK); in test_pattern_StringLocale_invalid()
163 DateTimeFormatter.ofPattern(null, Locale.UK); in test_pattern_StringLocale_nullPattern()
168 DateTimeFormatter.ofPattern("yyyy", null); in test_pattern_StringLocale_nullLocale()
DTCKDTFParsedInstant.java198 … dtFormatter = DateTimeFormatter.ofPattern("d MMM HH:mm:ss uuuu VV").withLocale(Locale.ENGLISH); in testWithZoneWithoutOffset()
DTCKLocalizedFieldParser.java284 DateTimeFormatter.ofPattern(pattern).parse(value); in test_invalidPatterns()
/libcore/luni/src/test/java/libcore/java/time/format/
DDateTimeFormatterTest.java100 return DateTimeFormatter.ofPattern(pattern, l).format(datetime); in formatWithPattern()
/libcore/luni/src/test/java/libcore/java/time/
DTimeApisConsistencyTest.java87 DateTimeFormatter.ofPattern("dd MM yyyy HH:mm:ss").withLocale(Locale.US);
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKMonthDay.java360 DateTimeFormatter f = DateTimeFormatter.ofPattern("M d"); in factory_parse_formatter()
367 DateTimeFormatter f = DateTimeFormatter.ofPattern("M d"); in factory_parse_formatter_nullText()
636 DateTimeFormatter f = DateTimeFormatter.ofPattern("M d"); in test_format_formatter()
DTCKYear.java338 DateTimeFormatter f = DateTimeFormatter.ofPattern("y"); in factory_parse_formatter()
345 DateTimeFormatter f = DateTimeFormatter.ofPattern("y"); in factory_parse_formatter_nullText()
999 DateTimeFormatter f = DateTimeFormatter.ofPattern("y"); in test_format_formatter()
DTCKYearMonth.java379 DateTimeFormatter f = DateTimeFormatter.ofPattern("y M"); in factory_parse_formatter()
386 DateTimeFormatter f = DateTimeFormatter.ofPattern("y M"); in factory_parse_formatter_nullText()
1299 DateTimeFormatter f = DateTimeFormatter.ofPattern("y M"); in test_format_formatter()
DTCKOffsetTime.java453 DateTimeFormatter f = DateTimeFormatter.ofPattern("H m s XXX");
460 DateTimeFormatter f = DateTimeFormatter.ofPattern("y M d H m s");
1132 DateTimeFormatter f = DateTimeFormatter.ofPattern("H m s");
DTCKOffsetDateTime.java456 DateTimeFormatter f = DateTimeFormatter.ofPattern("y M d H m s XXX");
463 DateTimeFormatter f = DateTimeFormatter.ofPattern("y M d H m s");
1201 DateTimeFormatter f = DateTimeFormatter.ofPattern("y M d H m s");
DTCKLocalTime.java570 DateTimeFormatter f = DateTimeFormatter.ofPattern("H m s"); in factory_parse_formatter()
577 DateTimeFormatter f = DateTimeFormatter.ofPattern("H m s"); in factory_parse_formatter_nullText()
2381 DateTimeFormatter f = DateTimeFormatter.ofPattern("H m s");
DTCKLocalDate.java633 DateTimeFormatter f = DateTimeFormatter.ofPattern("y M d");
640 DateTimeFormatter f = DateTimeFormatter.ofPattern("y M d");
1960 DateTimeFormatter f = DateTimeFormatter.ofPattern("y M d");
DTCKZonedDateTime.java794 DateTimeFormatter f = DateTimeFormatter.ofPattern("y M d H m s VV");
801 DateTimeFormatter f = DateTimeFormatter.ofPattern("y M d H m s");
2081 DateTimeFormatter f = DateTimeFormatter.ofPattern("y M d H m s");
DTCKLocalDateTime.java894 DateTimeFormatter f = DateTimeFormatter.ofPattern("y M d H m s");
901 DateTimeFormatter f = DateTimeFormatter.ofPattern("y M d H m s");
2938 DateTimeFormatter f = DateTimeFormatter.ofPattern("y M d H m s");
/libcore/ojluni/src/main/java/java/time/format/
DDateTimeFormatter.java566 public static DateTimeFormatter ofPattern(String pattern) { in ofPattern() method in DateTimeFormatter
590 public static DateTimeFormatter ofPattern(String pattern, Locale locale) { in ofPattern() method in DateTimeFormatter
/libcore/ojluni/src/test/java/time/test/java/time/chrono/
DTestEraDisplayName.java60 DateTimeFormatter.ofPattern("yyyy MM dd GGGG G GGGGG")
DTestUmmAlQuraChronology.java443 DateTimeFormatter test = DateTimeFormatter.ofPattern("dd G E MMMM yyyy", Locale.US); in test_ofPattern()
/libcore/api/
Dcurrent.txt12623 method public static java.time.format.DateTimeFormatter ofPattern(String);
12624 method public static java.time.format.DateTimeFormatter ofPattern(String, java.util.Locale);