Lines Matching defs:years
1399 * Check isLeapYear for BC years.
1420 errln("Leap years broken");
1430 * at 45 BC, and not have leap years before then).
1562 // of linear fashion (ie years jump around, up/down, etc) for a
1900 int32_t years[] = {2000, maxYear-1, maxYear, maxYear+1};
1903 UBool valid = years[i] <= maxYear;
1904 calendar->set(field, years[i]);
1916 logln(UnicodeString(" Year ") + years[i] + (valid? " ok " : " bad") +
1918 if (valid && newYear != years[i]) {
1923 else if (!valid && /*newYear == years[i]*/ dateAfter + 1.0 == dateAfter) {
2330 // Advance three years
2427 * Test behavior of fieldDifference around leap years. Also test a large
2455 logln((UnicodeString)"Ok: 2004/Feb/29 - 2000/Feb/29 = " + y + " years, " + d + " days");
2457 errln((UnicodeString)"FAIL: 2004/Feb/29 - 2000/Feb/29 = " + y + " years, " + d + " days");
2468 logln((UnicodeString)"Ok: 2000/Feb/29 - 2004/Feb/29 = " + y + " years, " + d + " days");
2470 errln((UnicodeString)"FAIL: 2000/Feb/29 - 2004/Feb/29 = " + y + " years, " + d + " days");
2768 errln("Error code when trying to add YEARs");