Searched refs:dateParse (Results 1 – 3 of 3) sorted by relevance
/external/icu/icu4c/source/test/intltest/ |
D | dtfmttst.cpp | 1099 SimpleDateFormat* dateParse = new SimpleDateFormat(status); in TestBadInput135a() local 1102 delete dateParse; in TestBadInput135a() 1110 dateParse->applyPattern("d MMMM, yyyy"); in TestBadInput135a() 1111 dateParse->adoptTimeZone(TimeZone::createDefault()); in TestBadInput135a() 1114 logln(UnicodeString("Trying to parse \"") + s + "\" with " + dateParse->toPattern(thePat)); in TestBadInput135a() 1116 date = dateParse->parse(s, status); in TestBadInput135a() 1130 dateParse->applyPattern(parseFormats[index]); in TestBadInput135a() 1131 dateParse->adoptTimeZone(TimeZone::createDefault()); in TestBadInput135a() 1134 date = dateParse->parse(s, parsePosition); in TestBadInput135a() 1147 ((DateFormat*)dateParse)->format(date, result); in TestBadInput135a() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
D | DateFormatTest.java | 1939 SimpleDateFormat dateParse = new SimpleDateFormat("", Locale.US); in TestBadInput135a() local 1961 dateParse.applyPattern("d MMMM, yyyy"); in TestBadInput135a() 1962 dateParse.setTimeZone(TimeZone.getDefault()); in TestBadInput135a() 1965 logln("Trying to parse \"" + ss + "\" with " + dateParse.toPattern()); in TestBadInput135a() 1967 date = dateParse.parse(ss); in TestBadInput135a() 1976 dateParse.applyPattern(parseFormats[index]); in TestBadInput135a() 1977 dateParse.setTimeZone(TimeZone.getDefault()); in TestBadInput135a() 1980 date = dateParse.parse(s, parsePosition); in TestBadInput135a() 1990 String result = ((DateFormat) dateParse).format(date); in TestBadInput135a() 1991 … logln("Parsed \"" + s + "\" using \"" + dateParse.toPattern() + "\" to: " + result); in TestBadInput135a() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | DateFormatTest.java | 1936 SimpleDateFormat dateParse = new SimpleDateFormat("", Locale.US); in TestBadInput135a() local 1958 dateParse.applyPattern("d MMMM, yyyy"); in TestBadInput135a() 1959 dateParse.setTimeZone(TimeZone.getDefault()); in TestBadInput135a() 1962 logln("Trying to parse \"" + ss + "\" with " + dateParse.toPattern()); in TestBadInput135a() 1964 date = dateParse.parse(ss); in TestBadInput135a() 1973 dateParse.applyPattern(parseFormats[index]); in TestBadInput135a() 1974 dateParse.setTimeZone(TimeZone.getDefault()); in TestBadInput135a() 1977 date = dateParse.parse(s, parsePosition); in TestBadInput135a() 1987 String result = ((DateFormat) dateParse).format(date); in TestBadInput135a() 1988 … logln("Parsed \"" + s + "\" using \"" + dateParse.toPattern() + "\" to: " + result); in TestBadInput135a() [all …]
|