/external/icu/icu4c/source/test/intltest/ |
tsdate.cpp | 72 DateFormat::EStyle timeStyle, dateStyle; 79 for(timeStyle = (DateFormat::EStyle)0; 80 timeStyle < (DateFormat::EStyle)4; 81 timeStyle = (DateFormat::EStyle) (timeStyle+1)) 83 fTestName = (UnicodeString) "Time test " + (int32_t) timeStyle + " (" + localeName + ")"; 84 fFormat = DateFormat::createTimeInstance(timeStyle, locale); 103 for(timeStyle = (DateFormat::EStyle)0; 104 timeStyle < (DateFormat::EStyle)4; 105 timeStyle = (DateFormat::EStyle) (timeStyle+1) [all...] |
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
IntlTestDateFormat.java | 75 int timeStyle, dateStyle; 82 for(timeStyle = 0; timeStyle < 4; timeStyle++) { 83 fTestName = "Time test " + timeStyle + " (" + localeName + ")"; 85 fFormat = DateFormat.getTimeInstance(timeStyle, locale); 109 for(timeStyle = 0; timeStyle < 4; timeStyle++) { 110 fTestName = "DateTime test " + dateStyle + "/" + timeStyle + " (" + localeName + ")" [all...] |
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
IntlTestDateFormat.java | 72 int timeStyle, dateStyle; 79 for(timeStyle = 0; timeStyle < 4; timeStyle++) { 80 fTestName = "Time test " + timeStyle + " (" + localeName + ")"; 82 fFormat = DateFormat.getTimeInstance(timeStyle, locale); 106 for(timeStyle = 0; timeStyle < 4; timeStyle++) { 107 fTestName = "DateTime test " + dateStyle + "/" + timeStyle + " (" + localeName + ")" [all...] |
/libcore/ojluni/src/main/java/java/text/ |
DateFormat.java | 556 * timeStyle, Locale.getDefault(Locale.Category.FORMAT))}. 561 * @param timeStyle the given time formatting style. For example, 566 int timeStyle) 568 return get(timeStyle, dateStyle, 3, Locale.getDefault(Locale.Category.FORMAT)); 575 * @param timeStyle the given time formatting style. 580 getDateTimeInstance(int dateStyle, int timeStyle, Locale aLocale) 582 return get(timeStyle, dateStyle, 3, aLocale); 782 * @param timeStyle a value from 0 to 3 indicating the time format, 790 private static DateFormat get(int timeStyle, int dateStyle, 793 if (timeStyle < 0 || timeStyle > 3) [all...] |
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/text/ |
DateFormat.java | [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
DateFormat.java | [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
DateFormat.java | [all...] |
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/javaspi/text/ |
DateFormatProviderICU.java | 29 public DateFormat getDateTimeInstance(int dateStyle, int timeStyle, Locale locale) { 30 return getInstance(dateStyle, timeStyle, locale);
|
/external/icu/icu4c/source/i18n/ |
windtfmt.h | 45 Win32DateFormat(DateFormat::EStyle timeStyle, DateFormat::EStyle dateStyle, const Locale &locale, UErrorCode &status);
|
reldtfmt.h | 47 RelativeDateFormat( UDateFormatStyle timeStyle, UDateFormatStyle dateStyle, const Locale& locale, UErrorCode& status);
|
datefmt.cpp | 409 EStyle timeStyle, 416 return create(timeStyle, dateStyle, aLocale); 498 DateFormat::create(EStyle timeStyle, EStyle dateStyle, const Locale& locale) 507 Win32DateFormat *f = new Win32DateFormat(timeStyle, dateStyle, locale, status); 518 if(/*((timeStyle!=UDAT_NONE)&&(timeStyle & UDAT_RELATIVE)) || */((dateStyle!=kNone)&&((dateStyle-kDateOffset) & UDAT_RELATIVE))) { 519 RelativeDateFormat *r = new RelativeDateFormat((UDateFormatStyle)timeStyle, (UDateFormatStyle)(dateStyle-kDateOffset), locale, status); 526 SimpleDateFormat *f = new SimpleDateFormat(timeStyle, dateStyle, locale, status);
|
reldtfmt.cpp | 70 RelativeDateFormat::RelativeDateFormat( UDateFormatStyle timeStyle, UDateFormatStyle dateStyle, 82 if (timeStyle < UDAT_NONE || timeStyle > UDAT_SHORT) { 99 if (timeStyle != UDAT_NONE) { 100 df = createTimeInstance((EStyle)timeStyle, locale); 108 // does not matter whether timeStyle is UDAT_NONE, we need something for fDateTimeFormatter 109 df = createTimeInstance((EStyle)timeStyle, locale);
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
TCKLocalizedPrinterParser.java | 197 public void test_time_print(LocalTime time, FormatStyle timeStyle, int timeStyleOld, Locale locale) { 202 DateTimeFormatter f = builder.appendLocalized(null, timeStyle).toFormatter(locale); 209 public void test_time_parse(LocalTime time, FormatStyle timeStyle, int timeStyleOld, Locale locale) { 214 DateTimeFormatter f = builder.appendLocalized(null, timeStyle).toFormatter(locale);
|
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/util/ |
Calendar.java | [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
GlobalizationPreferences.java | 629 * a particular combination of dateStyle and timeStyle. DF_NONE should 634 * @param timeStyle DF_FULL, DF_LONG, DF_MEDIUM, DF_SHORT or DF_NONE 639 public GlobalizationPreferences setDateFormat(int dateStyle, int timeStyle, DateFormat format) { 646 dateFormats[dateStyle][timeStyle] = (DateFormat) format.clone(); // for safety 658 * @param timeStyle DF_FULL, DF_LONG, DF_MEDIUM, DF_SHORT or DF_NONE 662 public DateFormat getDateFormat(int dateStyle, int timeStyle) { 663 if (dateStyle == DF_NONE && timeStyle == DF_NONE 665 || timeStyle < 0 || timeStyle >= DF_LIMIT) { 670 result = dateFormats[dateStyle][timeStyle]; [all...] |
Calendar.java | [all...] |
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/util/ |
GlobalizationPreferences.java | 654 * a particular combination of dateStyle and timeStyle. DF_NONE should 659 * @param timeStyle DF_FULL, DF_LONG, DF_MEDIUM, DF_SHORT or DF_NONE 665 public GlobalizationPreferences setDateFormat(int dateStyle, int timeStyle, DateFormat format) { 672 dateFormats[dateStyle][timeStyle] = (DateFormat) format.clone(); // for safety 684 * @param timeStyle DF_FULL, DF_LONG, DF_MEDIUM, DF_SHORT or DF_NONE 689 public DateFormat getDateFormat(int dateStyle, int timeStyle) { 690 if (dateStyle == DF_NONE && timeStyle == DF_NONE 692 || timeStyle < 0 || timeStyle >= DF_LIMIT) { 697 result = dateFormats[dateStyle][timeStyle]; [all...] |
/libcore/ojluni/src/main/java/java/time/format/ |
DateTimeFormatter.java | 167 * <td> {@link #ofLocalizedTime ofLocalizedTime(timeStyle)} </td> 177 * <td> {@link #ofLocalizedDateTime ofLocalizedDateTime(dateStyle,timeStyle)} 611 * @param timeStyle the formatter style to obtain, not null 614 public static DateTimeFormatter ofLocalizedTime(FormatStyle timeStyle) { 615 Objects.requireNonNull(timeStyle, "timeStyle"); 616 return new DateTimeFormatterBuilder().appendLocalized(null, timeStyle) 668 * @param timeStyle the time formatter style to obtain, not null 671 public static DateTimeFormatter ofLocalizedDateTime(FormatStyle dateStyle, FormatStyle timeStyle) { 673 Objects.requireNonNull(timeStyle, "timeStyle") [all...] |
DateTimeFormatterBuilder.java | 197 * for the requested dateStyle and/or timeStyle. 200 * @param timeStyle the FormatStyle for the time, null for date-only pattern 204 * @throws IllegalArgumentException if both dateStyle and timeStyle are null 206 public static String getLocalizedDateTimePattern(FormatStyle dateStyle, FormatStyle timeStyle, 210 if (dateStyle == null && timeStyle == null) { 211 throw new IllegalArgumentException("Either dateStyle or timeStyle must be non-null"); 217 convertStyle(dateStyle), convertStyle(timeStyle)); [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
Calendar.java | [all...] |
/external/icu/icu4c/source/i18n/unicode/ |
datefmt.h | 565 * @param timeStyle The given formatting style for the time portion of the result. 573 EStyle timeStyle = kDefault, [all...] |
smpdtfmt.h | [all...] |
udat.h | 828 * @param timeStyle The style used to format times; one of UDAT_FULL, UDAT_LONG, 831 * When the pattern parameter is used, pass in UDAT_PATTERN for both timeStyle and dateStyle. 835 * When the pattern parameter is used, pass in UDAT_PATTERN for both timeStyle and dateStyle. 853 udat_open(UDateFormatStyle timeStyle, [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
RelativeDateFormat.java | 56 * @param timeStyle The time style for the date and time. 61 public RelativeDateFormat(int timeStyle, int dateStyle, ULocale locale, Calendar cal) { 65 fTimeStyle = timeStyle; 85 // does not matter whether timeStyle is UDAT_NONE, we need something for fDateTimeFormat
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
RelativeDateFormat.java | 54 * @param timeStyle The time style for the date and time. 59 public RelativeDateFormat(int timeStyle, int dateStyle, ULocale locale, Calendar cal) { 63 fTimeStyle = timeStyle; 83 // does not matter whether timeStyle is UDAT_NONE, we need something for fDateTimeFormat
|