Searched refs:withLocale (Results 1 – 10 of 10) sorted by relevance
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKDateTimeFormatter.java | 137 … DateTimeFormatter base = fmt.withLocale(Locale.ENGLISH).withDecimalStyle(DecimalStyle.STANDARD); in test_withLocale() 138 DateTimeFormatter test = base.withLocale(Locale.GERMAN); in test_withLocale() 144 … DateTimeFormatter base = fmt.withLocale(Locale.ENGLISH).withDecimalStyle(DecimalStyle.STANDARD); in test_withLocale_null() 145 base.withLocale((Locale) null); in test_withLocale_null() 403 … DateTimeFormatter test = fmt.withLocale(Locale.ENGLISH).withDecimalStyle(DecimalStyle.STANDARD); in test_format_TemporalAccessor_simple() 410 … DateTimeFormatter test = fmt.withLocale(Locale.ENGLISH).withDecimalStyle(DecimalStyle.STANDARD); in test_format_TemporalAccessor_noSuchField() 416 … DateTimeFormatter test = fmt.withLocale(Locale.ENGLISH).withDecimalStyle(DecimalStyle.STANDARD); in test_format_TemporalAccessor_null() 423 … DateTimeFormatter test = fmt.withLocale(Locale.ENGLISH).withDecimalStyle(DecimalStyle.STANDARD); in test_print_TemporalAppendable() 431 … DateTimeFormatter test = fmt.withLocale(Locale.ENGLISH).withDecimalStyle(DecimalStyle.STANDARD); in test_print_TemporalAppendable_noSuchField() 438 … DateTimeFormatter test = fmt.withLocale(Locale.ENGLISH).withDecimalStyle(DecimalStyle.STANDARD); in test_print_TemporalAppendable_nullTemporal() [all …]
|
D | TCKFormatStyle.java | 114 formatter = formatter.withLocale(Locale.UK); in test_formatStyle()
|
D | TCKDateTimeFormatters.java | 1261 …assertEquals(DateTimeFormatter.RFC_1123_DATE_TIME.withLocale(Locale.FRENCH).format(test), expected… in test_print_rfc1123_french()
|
/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestTextPrinter.java | 254 DateTimeFormatter formatter = getPatternFormatter(pattern).withLocale(locale); in test_formatDayOfWeek() 268 getFormatter(field, style).withLocale(locale).formatTo(LocalDate.of(2013, 1, 1), buf); in test_standaloneNames() 274 …getFormatter(MONTH_OF_YEAR, TextStyle.FULL).withLocale(Locale.FRENCH).formatTo(LocalDate.of(2012, … in test_print_french_long() 279 …getFormatter(MONTH_OF_YEAR, TextStyle.SHORT).withLocale(Locale.FRENCH).formatTo(LocalDate.of(2012,… in test_print_french_short()
|
D | TestNonIsoFormatter.java | 161 .withChronology(chrono).withLocale(formatLocale) in test_formatLocalizedDate() 171 .withChronology(chrono).withLocale(formatLocale) in test_parseLocalizedText() 181 .withChronology(JAPANESE).withLocale(Locale.JAPANESE); in test_parseInvalidText()
|
D | TestTextParser.java | 264 DateTimeFormatter formatter = getFormatter(field, style).withLocale(locale); in test_parseStandaloneText() 272 DateTimeFormatter formatter = getPatternFormatter(pattern).withLocale(locale); in test_parseDayOfWeekText() 370 getFormatter(MONTH_OF_YEAR, TextStyle.SHORT).withLocale(Locale.FRENCH) in test_parse_french_short_strict_full_noMatch() 378 assertEquals(getFormatter(MONTH_OF_YEAR, TextStyle.SHORT).withLocale(Locale.FRENCH) in test_parse_french_short_strict_short_match() 433 DateTimeFormatter formatter = getFormatter(field).withLocale(locale); in test_parseLenientText()
|
D | TestDateTimeFormatter.java | 106 DateTimeFormatter test = base.withLocale(Locale.ENGLISH); in test_withLocale_same()
|
D | TestDateTimeTextProvider.java | 184 DateTimeFormatter fmt = getFormatter(field, style).withLocale(locale); in test_getText()
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | DateTimeFormatter.java | 1409 public DateTimeFormatter withLocale(Locale locale) { in withLocale() method in DateTimeFormatter
|
/libcore/ojluni/src/test/java/time/test/java/time/chrono/ |
D | TestUmmAlQuraChronology.java | 468 …lizedDate(FormatStyle.LONG).withChronology(Chronology.of("Hijrah-umalqura")).withLocale(Locale.US); in test_formatterOfLocalizedDate()
|