Home
last modified time | relevance | path

Searched refs:FormatStyle (Results 1 – 10 of 10) sorted by relevance

/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKLocalizedPrinterParser.java70 import java.time.format.FormatStyle;
120 {LocalDate.of(2012, 6, 30), FormatStyle.SHORT, DateFormat.SHORT, Locale.UK}, in data_date()
121 {LocalDate.of(2012, 6, 30), FormatStyle.SHORT, DateFormat.SHORT, Locale.US}, in data_date()
122 {LocalDate.of(2012, 6, 30), FormatStyle.SHORT, DateFormat.SHORT, Locale.FRANCE}, in data_date()
123 {LocalDate.of(2012, 6, 30), FormatStyle.SHORT, DateFormat.SHORT, Locale.JAPAN}, in data_date()
125 {LocalDate.of(2012, 6, 30), FormatStyle.MEDIUM, DateFormat.MEDIUM, Locale.UK}, in data_date()
126 {LocalDate.of(2012, 6, 30), FormatStyle.MEDIUM, DateFormat.MEDIUM, Locale.US}, in data_date()
127 {LocalDate.of(2012, 6, 30), FormatStyle.MEDIUM, DateFormat.MEDIUM, Locale.FRANCE}, in data_date()
128 {LocalDate.of(2012, 6, 30), FormatStyle.MEDIUM, DateFormat.MEDIUM, Locale.JAPAN}, in data_date()
130 {LocalDate.of(2012, 6, 30), FormatStyle.LONG, DateFormat.LONG, Locale.UK}, in data_date()
[all …]
DTCKFormatStyle.java65 import java.time.format.FormatStyle;
88 for (FormatStyle style : FormatStyle.values()) { in test_valueOf()
89 assertEquals(FormatStyle.valueOf(style.name()), style); in test_valueOf()
97 …onedDateTime.of(LocalDateTime.of(2001, 10, 2, 1, 2, 3), ZONEID_PARIS), FormatStyle.FULL, "Tuesday,… in data_formatStyle()
98 …onedDateTime.of(LocalDateTime.of(2001, 10, 2, 1, 2, 3), ZONEID_PARIS), FormatStyle.LONG, "2 Octobe… in data_formatStyle()
99 …onedDateTime.of(LocalDateTime.of(2001, 10, 2, 1, 2, 3), ZONEID_PARIS), FormatStyle.MEDIUM, "2 Oct … in data_formatStyle()
100 …onedDateTime.of(LocalDateTime.of(2001, 10, 2, 1, 2, 3), ZONEID_PARIS), FormatStyle.SHORT, "02/10/2… in data_formatStyle()
102 …{ZonedDateTime.of(LocalDateTime.of(2001, 10, 2, 1, 2, 3), OFFSET_PTWO), FormatStyle.FULL, "Tuesday… in data_formatStyle()
103 …{ZonedDateTime.of(LocalDateTime.of(2001, 10, 2, 1, 2, 3), OFFSET_PTWO), FormatStyle.LONG, "2 Octob… in data_formatStyle()
104 …{ZonedDateTime.of(LocalDateTime.of(2001, 10, 2, 1, 2, 3), OFFSET_PTWO), FormatStyle.MEDIUM, "2 Oct… in data_formatStyle()
[all …]
DTCKDateTimeFormatters.java91 import java.time.format.FormatStyle;
176 …assertEquals(DateTimeFormatter.ofLocalizedDate(FormatStyle.FULL).getChronology(), IsoChronology.IN… in test_ofLocalizedDate_basics()
177 assertEquals(DateTimeFormatter.ofLocalizedDate(FormatStyle.FULL).getZone(), null); in test_ofLocalizedDate_basics()
178 …assertEquals(DateTimeFormatter.ofLocalizedDate(FormatStyle.FULL).getResolverStyle(), ResolverStyle… in test_ofLocalizedDate_basics()
183 …assertEquals(DateTimeFormatter.ofLocalizedTime(FormatStyle.FULL).getChronology(), IsoChronology.IN… in test_ofLocalizedTime_basics()
184 assertEquals(DateTimeFormatter.ofLocalizedTime(FormatStyle.FULL).getZone(), null); in test_ofLocalizedTime_basics()
185 …assertEquals(DateTimeFormatter.ofLocalizedTime(FormatStyle.FULL).getResolverStyle(), ResolverStyle… in test_ofLocalizedTime_basics()
190 …assertEquals(DateTimeFormatter.ofLocalizedDateTime(FormatStyle.FULL).getChronology(), IsoChronolog… in test_ofLocalizedDateTime1_basics()
191 assertEquals(DateTimeFormatter.ofLocalizedDateTime(FormatStyle.FULL).getZone(), null); in test_ofLocalizedDateTime1_basics()
192 …assertEquals(DateTimeFormatter.ofLocalizedDateTime(FormatStyle.FULL).getResolverStyle(), ResolverS… in test_ofLocalizedDateTime1_basics()
[all …]
/libcore/ojluni/src/test/java/time/test/java/time/format/
DTestDateTimeFormatterBuilder.java80 import java.time.format.FormatStyle;
908 …{FormatStyle.FULL, FormatStyle.FULL, IsoChronology.INSTANCE, Locale.US, "EEEE, MMMM d, y 'at' h:mm… in localizedDateTimePatterns()
909 …{FormatStyle.LONG, FormatStyle.LONG, IsoChronology.INSTANCE, Locale.US, "MMMM d, y 'at' h:mm:ss a … in localizedDateTimePatterns()
910 …{FormatStyle.MEDIUM, FormatStyle.MEDIUM, IsoChronology.INSTANCE, Locale.US, "MMM d, y, h:mm:ss a"}, in localizedDateTimePatterns()
911 … {FormatStyle.SHORT, FormatStyle.SHORT, IsoChronology.INSTANCE, Locale.US, "M/d/yy, h:mm a"}, in localizedDateTimePatterns()
912 {FormatStyle.FULL, null, IsoChronology.INSTANCE, Locale.US, "EEEE, MMMM d, y"}, in localizedDateTimePatterns()
913 {FormatStyle.LONG, null, IsoChronology.INSTANCE, Locale.US, "MMMM d, y"}, in localizedDateTimePatterns()
914 {FormatStyle.MEDIUM, null, IsoChronology.INSTANCE, Locale.US, "MMM d, y"}, in localizedDateTimePatterns()
915 {FormatStyle.SHORT, null, IsoChronology.INSTANCE, Locale.US, "M/d/yy"}, in localizedDateTimePatterns()
916 {null, FormatStyle.FULL, IsoChronology.INSTANCE, Locale.US, "h:mm:ss a zzzz"}, in localizedDateTimePatterns()
[all …]
DTestNonIsoFormatter.java46 import java.time.format.FormatStyle;
160 DateTimeFormatter dtf = DateTimeFormatter.ofLocalizedDate(FormatStyle.FULL) in test_formatLocalizedDate()
170 DateTimeFormatter dtf = DateTimeFormatter.ofLocalizedDate(FormatStyle.FULL) in test_parseLocalizedText()
180 DateTimeFormatter dtf = DateTimeFormatter.ofLocalizedDate(FormatStyle.FULL) in test_parseInvalidText()
/libcore/ojluni/src/main/java/java/time/format/
DFormatStyle.java75 public enum FormatStyle { enum
DDateTimeFormatter.java586 public static DateTimeFormatter ofLocalizedDate(FormatStyle dateStyle) { in ofLocalizedDate()
614 public static DateTimeFormatter ofLocalizedTime(FormatStyle timeStyle) { in ofLocalizedTime()
642 public static DateTimeFormatter ofLocalizedDateTime(FormatStyle dateTimeStyle) { in ofLocalizedDateTime()
671 …public static DateTimeFormatter ofLocalizedDateTime(FormatStyle dateStyle, FormatStyle timeStyle) { in ofLocalizedDateTime()
DDateTimeFormatterBuilder.java205 public static String getLocalizedDateTimePattern(FormatStyle dateStyle, FormatStyle timeStyle, in getLocalizedDateTimePattern()
230 private static int convertStyle(FormatStyle style) { in convertStyle()
1276 public DateTimeFormatterBuilder appendLocalized(FormatStyle dateStyle, FormatStyle timeStyle) { in appendLocalized()
4436 private final FormatStyle dateStyle;
4437 private final FormatStyle timeStyle;
4445 LocalizedPrinterParser(FormatStyle dateStyle, FormatStyle timeStyle) { in LocalizedPrinterParser()
/libcore/ojluni/src/test/java/time/test/java/time/chrono/
DTestUmmAlQuraChronology.java60 import java.time.format.FormatStyle;
468 …DateTimeFormatter df = DateTimeFormatter.ofLocalizedDate(FormatStyle.LONG).withChronology(Chronolo… in test_formatterOfLocalizedDate()
/libcore/
Dopenjdk_java_files.bp844 "ojluni/src/main/java/java/time/format/FormatStyle.java",