Home
last modified time | relevance | path

Searched refs:dateStyle (Results 1 – 9 of 9) sorted by relevance

/libcore/ojluni/src/main/java/java/text/
DDateFormat.java565 public final static DateFormat getDateTimeInstance(int dateStyle, in getDateTimeInstance() argument
568 return get(timeStyle, dateStyle, 3, Locale.getDefault(Locale.Category.FORMAT)); in getDateTimeInstance()
580 getDateTimeInstance(int dateStyle, int timeStyle, Locale aLocale) in getDateTimeInstance() argument
582 return get(timeStyle, dateStyle, 3, aLocale); in getDateTimeInstance()
790 private static DateFormat get(int timeStyle, int dateStyle, in get() argument
800 if (dateStyle < 0 || dateStyle > 3) { in get()
801 throw new IllegalArgumentException("Illegal date style " + dateStyle); in get()
804 dateStyle = -1; in get()
817 return new SimpleDateFormat(timeStyle, dateStyle, loc); in get()
DSimpleDateFormat.java625 SimpleDateFormat(int timeStyle, int dateStyle, Locale locale) { in SimpleDateFormat() argument
626 this(getDateTimeFormat(timeStyle, dateStyle, locale), locale); in SimpleDateFormat()
629 private static String getDateTimeFormat(int timeStyle, int dateStyle, Locale locale) { in getDateTimeFormat() argument
631 if ((timeStyle >= 0) && (dateStyle >= 0)) { in getDateTimeFormat()
633 localeData.getDateFormat(dateStyle), in getDateTimeFormat()
639 } else if (dateStyle >= 0) { in getDateTimeFormat()
640 return localeData.getDateFormat(dateStyle); in getDateTimeFormat()
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKLocalizedPrinterParser.java144 …public void test_date_print(LocalDate date, FormatStyle dateStyle, int dateStyleOld, Locale locale… in test_date_print() argument
149 DateTimeFormatter f = builder.appendLocalized(dateStyle, null).toFormatter(locale); in test_date_print()
156 …public void test_date_parse(LocalDate date, FormatStyle dateStyle, int dateStyleOld, Locale locale… in test_date_parse() argument
161 DateTimeFormatter f = builder.appendLocalized(dateStyle, null).toFormatter(locale); in test_date_parse()
/libcore/ojluni/annotations/hiddenapi/java/text/
DDateFormat.java105 public static final java.text.DateFormat getDateTimeInstance(int dateStyle, int timeStyle) { in getDateTimeInstance() argument
110 int dateStyle, int timeStyle, java.util.Locale aLocale) { in getDateTimeInstance() argument
171 int timeStyle, int dateStyle, int flags, java.util.Locale loc) { in get() argument
/libcore/ojluni/src/main/java/java/time/format/
DDateTimeFormatter.java586 public static DateTimeFormatter ofLocalizedDate(FormatStyle dateStyle) { in ofLocalizedDate() argument
587 Objects.requireNonNull(dateStyle, "dateStyle"); in ofLocalizedDate()
588 return new DateTimeFormatterBuilder().appendLocalized(dateStyle, null) in ofLocalizedDate()
671 …public static DateTimeFormatter ofLocalizedDateTime(FormatStyle dateStyle, FormatStyle timeStyle) { in ofLocalizedDateTime() argument
672 Objects.requireNonNull(dateStyle, "dateStyle"); in ofLocalizedDateTime()
674 return new DateTimeFormatterBuilder().appendLocalized(dateStyle, timeStyle) in ofLocalizedDateTime()
DDateTimeFormatterBuilder.java205 public static String getLocalizedDateTimePattern(FormatStyle dateStyle, FormatStyle timeStyle, in getLocalizedDateTimePattern() argument
209 if (dateStyle == null && timeStyle == null) { in getLocalizedDateTimePattern()
220 convertStyle(dateStyle), convertStyle(timeStyle)); in getLocalizedDateTimePattern()
1276 public DateTimeFormatterBuilder appendLocalized(FormatStyle dateStyle, FormatStyle timeStyle) { in appendLocalized() argument
1277 if (dateStyle == null && timeStyle == null) { in appendLocalized()
1280 appendInternal(new LocalizedPrinterParser(dateStyle, timeStyle)); in appendLocalized()
4436 private final FormatStyle dateStyle; field in LocalizedPrinterParser
4445 LocalizedPrinterParser(FormatStyle dateStyle, FormatStyle timeStyle) { in LocalizedPrinterParser() argument
4447 this.dateStyle = dateStyle; in LocalizedPrinterParser()
4475 String key = chrono.getId() + '|' + locale.toString() + '|' + dateStyle + timeStyle; in formatter()
[all …]
/libcore/ojluni/annotations/mmodule/java/text/
DDateFormat.annotated.java80 public static final java.text.DateFormat getDateTimeInstance(int dateStyle, int timeStyle) { throw … in getDateTimeInstance() argument
82 public static final java.text.DateFormat getDateTimeInstance(int dateStyle, int timeStyle, java.uti… in getDateTimeInstance() argument
/libcore/ojluni/annotations/sdk/nullability/java/text/
DDateFormat.annotated.java80 @libcore.util.NonNull public static final java.text.DateFormat getDateTimeInstance(int dateStyle, i… in getDateTimeInstance() argument
82 @libcore.util.NonNull public static final java.text.DateFormat getDateTimeInstance(int dateStyle, i… in getDateTimeInstance() argument
/libcore/ojluni/src/test/java/time/test/java/time/format/
DTestDateTimeFormatterBuilder.java966 public void test_getLocalizedDateTimePattern(FormatStyle dateStyle, FormatStyle timeStyle, in test_getLocalizedDateTimePattern() argument
968 …String actual = DateTimeFormatterBuilder.getLocalizedDateTimePattern(dateStyle, timeStyle, chrono,… in test_getLocalizedDateTimePattern()