Searched refs:dateParse (Results 1 – 3 of 3) sorted by relevance
/external/icu/icu4c/source/test/intltest/ |
D | dtfmttst.cpp | 1083 SimpleDateFormat* dateParse = new SimpleDateFormat(status); in TestBadInput135a() local 1086 delete dateParse; in TestBadInput135a() 1094 dateParse->applyPattern("d MMMM, yyyy"); in TestBadInput135a() 1095 dateParse->adoptTimeZone(TimeZone::createDefault()); in TestBadInput135a() 1098 logln(UnicodeString("Trying to parse \"") + s + "\" with " + dateParse->toPattern(thePat)); in TestBadInput135a() 1100 date = dateParse->parse(s, status); in TestBadInput135a() 1114 dateParse->applyPattern(parseFormats[index]); in TestBadInput135a() 1115 dateParse->adoptTimeZone(TimeZone::createDefault()); in TestBadInput135a() 1118 date = dateParse->parse(s, parsePosition); in TestBadInput135a() 1131 ((DateFormat*)dateParse)->format(date, result); in TestBadInput135a() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
D | DateFormatTest.java | 1825 SimpleDateFormat dateParse = new SimpleDateFormat("", Locale.US); in TestBadInput135a() local 1847 dateParse.applyPattern("d MMMM, yyyy"); in TestBadInput135a() 1848 dateParse.setTimeZone(TimeZone.getDefault()); in TestBadInput135a() 1851 logln("Trying to parse \"" + ss + "\" with " + dateParse.toPattern()); in TestBadInput135a() 1853 date = dateParse.parse(ss); in TestBadInput135a() 1862 dateParse.applyPattern(parseFormats[index]); in TestBadInput135a() 1863 dateParse.setTimeZone(TimeZone.getDefault()); in TestBadInput135a() 1866 date = dateParse.parse(s, parsePosition); in TestBadInput135a() 1876 String result = ((DateFormat) dateParse).format(date); in TestBadInput135a() 1877 … 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 | 1821 SimpleDateFormat dateParse = new SimpleDateFormat("", Locale.US); in TestBadInput135a() local 1843 dateParse.applyPattern("d MMMM, yyyy"); in TestBadInput135a() 1844 dateParse.setTimeZone(TimeZone.getDefault()); in TestBadInput135a() 1847 logln("Trying to parse \"" + ss + "\" with " + dateParse.toPattern()); in TestBadInput135a() 1849 date = dateParse.parse(ss); in TestBadInput135a() 1858 dateParse.applyPattern(parseFormats[index]); in TestBadInput135a() 1859 dateParse.setTimeZone(TimeZone.getDefault()); in TestBadInput135a() 1862 date = dateParse.parse(s, parsePosition); in TestBadInput135a() 1872 String result = ((DateFormat) dateParse).format(date); in TestBadInput135a() 1873 … logln("Parsed \"" + s + "\" using \"" + dateParse.toPattern() + "\" to: " + result); in TestBadInput135a() [all …]
|