Lines Matching defs:years
1435 * Check isLeapYear for BC years.
1460 errln("Leap years broken");
1470 * at 45 BC, and not have leap years before then).
1606 // of linear fashion (ie years jump around, up/down, etc) for a
1944 int32_t years[] = {2000, maxYear-1, maxYear, maxYear+1};
1947 UBool valid = years[i] <= maxYear;
1948 calendar->set(field, years[i]);
1960 logln(UnicodeString(" Year ") + years[i] + (valid? " ok " : " bad") +
1962 if (valid && newYear != years[i]) {
1967 else if (!valid && /*newYear == years[i]*/ dateAfter + 1.0 == dateAfter) {
2376 // Advance three years
2473 * Test behavior of fieldDifference around leap years. Also test a large
2501 logln((UnicodeString)"Ok: 2004/Feb/29 - 2000/Feb/29 = " + y + " years, " + d + " days");
2503 errln((UnicodeString)"FAIL: 2004/Feb/29 - 2000/Feb/29 = " + y + " years, " + d + " days");
2514 logln((UnicodeString)"Ok: 2000/Feb/29 - 2004/Feb/29 = " + y + " years, " + d + " days");
2516 errln((UnicodeString)"FAIL: 2000/Feb/29 - 2004/Feb/29 = " + y + " years, " + d + " days");
2814 errln("Error code when trying to add YEARs");