Home
last modified time | relevance | path

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

/external/icu/icu4c/source/test/intltest/
Ddtfmttst.cpp1097 SimpleDateFormat* dateParse = new SimpleDateFormat(status); in TestBadInput135a() local
1100 delete dateParse; in TestBadInput135a()
1108 dateParse->applyPattern("d MMMM, yyyy"); in TestBadInput135a()
1109 dateParse->adoptTimeZone(TimeZone::createDefault()); in TestBadInput135a()
1112 logln(UnicodeString("Trying to parse \"") + s + "\" with " + dateParse->toPattern(thePat)); in TestBadInput135a()
1114 date = dateParse->parse(s, status); in TestBadInput135a()
1128 dateParse->applyPattern(parseFormats[index]); in TestBadInput135a()
1129 dateParse->adoptTimeZone(TimeZone::createDefault()); in TestBadInput135a()
1132 date = dateParse->parse(s, parsePosition); in TestBadInput135a()
1145 ((DateFormat*)dateParse)->format(date, result); in TestBadInput135a()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DDateFormatTest.java1848 SimpleDateFormat dateParse = new SimpleDateFormat("", Locale.US); in TestBadInput135a() local
1870 dateParse.applyPattern("d MMMM, yyyy"); in TestBadInput135a()
1871 dateParse.setTimeZone(TimeZone.getDefault()); in TestBadInput135a()
1874 logln("Trying to parse \"" + ss + "\" with " + dateParse.toPattern()); in TestBadInput135a()
1876 date = dateParse.parse(ss); in TestBadInput135a()
1885 dateParse.applyPattern(parseFormats[index]); in TestBadInput135a()
1886 dateParse.setTimeZone(TimeZone.getDefault()); in TestBadInput135a()
1889 date = dateParse.parse(s, parsePosition); in TestBadInput135a()
1899 String result = ((DateFormat) dateParse).format(date); in TestBadInput135a()
1900 … logln("Parsed \"" + s + "\" using \"" + dateParse.toPattern() + "\" to: " + result); in TestBadInput135a()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DDateFormatTest.java1851 SimpleDateFormat dateParse = new SimpleDateFormat("", Locale.US); in TestBadInput135a() local
1873 dateParse.applyPattern("d MMMM, yyyy"); in TestBadInput135a()
1874 dateParse.setTimeZone(TimeZone.getDefault()); in TestBadInput135a()
1877 logln("Trying to parse \"" + ss + "\" with " + dateParse.toPattern()); in TestBadInput135a()
1879 date = dateParse.parse(ss); in TestBadInput135a()
1888 dateParse.applyPattern(parseFormats[index]); in TestBadInput135a()
1889 dateParse.setTimeZone(TimeZone.getDefault()); in TestBadInput135a()
1892 date = dateParse.parse(s, parsePosition); in TestBadInput135a()
1902 String result = ((DateFormat) dateParse).format(date); in TestBadInput135a()
1903 … logln("Parsed \"" + s + "\" using \"" + dateParse.toPattern() + "\" to: " + result); in TestBadInput135a()
[all …]