Lines Matching defs:ec
492 UErrorCode ec = U_ZERO_ERROR;
497 DateFormatSymbols rootSyms(Locale(""), ec);
498 if (U_FAILURE(ec)) {
499 dataerrln("Unable to create DateFormatSymbols - %s", u_errorName(ec));
522 dateFormats[2] = new SimpleDateFormat(buf, Locale::getUS(), ec);
529 dateFormats[3] = new SimpleDateFormat(buf, Locale::getUS(), ec);
530 if(U_FAILURE(ec)){
531 errln(UnicodeString("Could not create SimpleDateFormat object for locale en_US. Error: " )+ UnicodeString(u_errorName(ec)));
1163 UErrorCode ec = U_ZERO_ERROR;
1164 SimpleDateFormat fmt("dd/MM/yy", Locale::getUK(), ec);
1165 if (U_FAILURE(ec)) {
1166 dataerrln("FAIL: SimpleDateFormat constructor - %s", u_errorName(ec));
1391 UErrorCode ec = U_ZERO_ERROR;
1416 cal = Calendar::createInstance(Locale::getUS(), ec);
1417 if (cal == NULL || U_FAILURE(ec)) {
1419 u_errorName(ec));
1445 when = cal->getTime(ec);
1446 if (U_FAILURE(ec)) {
1447 errln((UnicodeString)"FAIL: cal->getTime() failed with " + u_errorName(ec));
1552 UErrorCode ec = U_ZERO_ERROR;
1553 SimpleDateFormat f(UnicodeString("Yesterday"), ec);
1554 if (U_FAILURE(ec)) {
1555 dataerrln("Fail construct SimpleDateFormat: %s", u_errorName(ec));
1567 UErrorCode ec = U_ZERO_ERROR;
1569 SimpleDateFormat fmt("EEEE, dd MMMM yyyy h:mm:ss a", Locale("el", "", ""), ec);
1570 if (U_FAILURE(ec)) {
1571 dataerrln("Fail construct SimpleDateFormat: %s", u_errorName(ec));
1917 UErrorCode ec = U_ZERO_ERROR;
1918 SimpleDateFormat fmt("", loc, ec);
1919 SimpleDateFormat ref(data[i++], loc, ec);
1920 SimpleDateFormat gotfmt("G yyyy MM dd HH:mm:ss z", loc, ec);
1921 if (U_FAILURE(ec)) {
1922 dataerrln("FAIL: SimpleDateFormat constructor - %s", u_errorName(ec));
1932 ec = U_ZERO_ERROR;
1937 UDate got = fmt.parse(input, ec);
1939 if (U_FAILURE(ec)) {
2000 UErrorCode ec = U_ZERO_ERROR;
2002 SimpleDateFormat fmt("", loc, ec);
2003 SimpleDateFormat ref(data[i++], loc, ec);
2004 SimpleDateFormat univ("EE G yyyy MM dd HH:mm:ss.SSS z", loc, ec);
2005 if (U_FAILURE(ec)) {
2006 dataerrln("Fail construct SimpleDateFormat: %s", u_errorName(ec));
2024 UDate date = ref.parse(ctou(datestr), ec);
2025 if (!assertSuccess("parse", ec)) return;
2031 date = ref.parse(ctou(datestr), ec);
2032 if (!assertSuccess("parse", ec)) return;
2033 UDate parsedate = fmt.parse(ctou(string), ec);
2034 if (assertSuccess((UnicodeString)"\"" + currentPat + "\".parse(" + string + ")", ec)) {
2045 UDate date = ref.parse(ctou(datestr), ec);
2046 if (!assertSuccess("parse", ec)) return;
2047 UDate parsedate = fmt.parse(ctou(string), ec);
2048 if (assertSuccess((UnicodeString)"\"" + currentPat + "\".parse(" + string + ")", ec)) {
2063 UDate date = ref.parse(ctou(datestr), ec);
2064 if (!assertSuccess("parse", ec)) return;
2069 UDate parsedate = fmt.parse(string, ec);
2070 if (assertSuccess((UnicodeString)"\"" + currentPat + "\".parse(" + string + ")", ec)) {
2104 UErrorCode ec = U_ZERO_ERROR;
2106 SimpleDateFormat fmt("", loc, ec);
2107 SimpleDateFormat ref(data[i++], loc, ec);
2108 SimpleDateFormat univ("EE G yyyy MM dd HH:mm:ss.SSS z", loc, ec);
2109 if (U_FAILURE(ec)) {
2110 dataerrln("Fail construct SimpleDateFormat: %s", u_errorName(ec));
2125 UDate date = ref.parse(ctou(datestr), ec);
2126 if (!assertSuccess("parse", ec)) return;