Home
last modified time | relevance | path

Searched refs:dateParse (Results 1 – 3 of 3) sorted by relevance

/external/icu/icu4c/source/test/intltest/
Ddtfmttst.cpp1096 SimpleDateFormat* dateParse = new SimpleDateFormat(status); in TestBadInput135a() local
1099 delete dateParse; in TestBadInput135a()
1107 dateParse->applyPattern("d MMMM, yyyy"); in TestBadInput135a()
1108 dateParse->adoptTimeZone(TimeZone::createDefault()); in TestBadInput135a()
1111 logln(UnicodeString("Trying to parse \"") + s + "\" with " + dateParse->toPattern(thePat)); in TestBadInput135a()
1113 date = dateParse->parse(s, status); in TestBadInput135a()
1127 dateParse->applyPattern(parseFormats[index]); in TestBadInput135a()
1128 dateParse->adoptTimeZone(TimeZone::createDefault()); in TestBadInput135a()
1131 date = dateParse->parse(s, parsePosition); in TestBadInput135a()
1144 ((DateFormat*)dateParse)->format(date, result); in TestBadInput135a()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DDateFormatTest.java1845 SimpleDateFormat dateParse = new SimpleDateFormat("", Locale.US); in TestBadInput135a() local
1867 dateParse.applyPattern("d MMMM, yyyy"); in TestBadInput135a()
1868 dateParse.setTimeZone(TimeZone.getDefault()); in TestBadInput135a()
1871 logln("Trying to parse \"" + ss + "\" with " + dateParse.toPattern()); in TestBadInput135a()
1873 date = dateParse.parse(ss); in TestBadInput135a()
1882 dateParse.applyPattern(parseFormats[index]); in TestBadInput135a()
1883 dateParse.setTimeZone(TimeZone.getDefault()); in TestBadInput135a()
1886 date = dateParse.parse(s, parsePosition); in TestBadInput135a()
1896 String result = ((DateFormat) dateParse).format(date); in TestBadInput135a()
1897 … logln("Parsed \"" + s + "\" using \"" + dateParse.toPattern() + "\" to: " + result); in TestBadInput135a()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DDateFormatTest.java1844 SimpleDateFormat dateParse = new SimpleDateFormat("", Locale.US); in TestBadInput135a() local
1866 dateParse.applyPattern("d MMMM, yyyy"); in TestBadInput135a()
1867 dateParse.setTimeZone(TimeZone.getDefault()); in TestBadInput135a()
1870 logln("Trying to parse \"" + ss + "\" with " + dateParse.toPattern()); in TestBadInput135a()
1872 date = dateParse.parse(ss); in TestBadInput135a()
1881 dateParse.applyPattern(parseFormats[index]); in TestBadInput135a()
1882 dateParse.setTimeZone(TimeZone.getDefault()); in TestBadInput135a()
1885 date = dateParse.parse(s, parsePosition); in TestBadInput135a()
1895 String result = ((DateFormat) dateParse).format(date); in TestBadInput135a()
1896 … logln("Parsed \"" + s + "\" using \"" + dateParse.toPattern() + "\" to: " + result); in TestBadInput135a()
[all …]