Lines Matching refs:fieldDifference
2275 * Test fieldDifference().
2319 int32_t dy = cal.fieldDifference(date2, UCAL_YEAR, ec);
2320 int32_t dm = cal.fieldDifference(date2, UCAL_MONTH, ec);
2321 int32_t dd = cal.fieldDifference(date2, UCAL_DATE, ec);
2322 if (failure(ec, "fieldDifference"))
2331 int32_t dy2 = cal2->fieldDifference(date2, Calendar::YEAR, ec2);
2332 int32_t dm2 = cal2->fieldDifference(date2, Calendar::MONTH, ec2);
2333 int32_t dd2 = cal2->fieldDifference(date2, Calendar::DATE, ec2);
2334 if (failure(ec2, "fieldDifference(date, Calendar::DATE, ec)"))
2339 errln("fieldDifference(UCAL_...) and fieldDifference(Calendar::...) give different results!\n");
2491 * Test behavior of fieldDifference around leap years. Also test a large
2511 int32_t y = cal->fieldDifference(date2004, UCAL_YEAR, ec);
2512 int32_t d = cal->fieldDifference(date2004, UCAL_DAY_OF_YEAR, ec);
2514 errln("FAIL: fieldDifference()");
2524 y = cal->fieldDifference(date2000, UCAL_YEAR, ec);
2525 d = cal->fieldDifference(date2000, UCAL_DAY_OF_YEAR, ec);
2527 errln("FAIL: setTime() / fieldDifference()");
2546 d = cal->fieldDifference(ayl, UCAL_DATE, ec);
2548 int32_t d2 = cal->fieldDifference(asl, UCAL_DATE, ec);
2550 errln("FAIL: setTime() / fieldDifference()");