Lines Matching refs:YEAR
97 "YEAR",
398 logln("YEAR: " + Calendar::get(Calendar::YEAR));
425 logln("YEAR: " + Calendar::get(Calendar::YEAR));
804 /*cal1.set( Calendar::YEAR, 1997 );
817 /*cal2.set( Calendar::YEAR, 1997 );
860 int32_t sec = 0, min = 0, hr = 0, day = 1, month = 10, year = 1997;
896 cal3->set(year, month, day, hr, min, sec);
1223 errln("Fail: Week of year misbehaving");
1487 cal->set(UCAL_YEAR, 81); // 81 BC is a leap year (proleptically)
1597 * Maximum value for YEAR field wrong.
1620 int32_t year = calendar->get(UCAL_YEAR,status);
1622 if (year > maxYear) {
1623 errln(UnicodeString("Failed for ")+DATES[i]+" ms: year=" +
1624 year + ", maxYear=" + maxYear);
1706 errln("Fail: Date(EARLIEST_SUPPORTED_MILLIS) has an AD year");
1712 errln("Fail: Date(LATEST_SUPPORTED_MILLIS) has a BC year");
1793 * Adding 12 months behaves differently from adding 1 year
1820 errln("Couldn't add(YEAR, 1)");
1824 logln(UnicodeString("after adding one year : ") + date2);
1890 * Calendar.getActualMaximum(YEAR) works wrong.
1959 logln(UnicodeString(" Year ") + years[i] + (valid? " ok " : " bad") +
1980 * Week of year is wrong at the start and end of the year.
2312 int32_t dy2 = cal2->fieldDifference(date2, Calendar::YEAR, ec2);
2408 // year 1724 in coptic calendar =
2409 // year 2000 in ethiopic calendar (276 more than coptic) =
2410 // year 7500 in ethiopic-amete-alem calendar (5776 more than coptic)
2415 { 1723, 12, 2, UCAL_MONTH, +1, 1724, 0, 2 }, // 1723 is a leap year
2420 { 1723, 12, 1, UCAL_DATE, +8, 1724, 0, 3 }, // 1723 is a leap year
2421 { 1724, 0, 1, UCAL_DATE, -1, 1723, 12, 6 }, // 1723 is a leap year
2457 int32_t year = cal->get(UCAL_YEAR, status);
2460 if ( U_FAILURE(status) || year != endYear || month != testItemPtr->endMonth || day != testItemPtr->endDay ) {
2464 ", got " + year + "/" + month + "/" + day );
2675 // Scan the year 2003, overlapping the edges of the year
2801 errln("Couldn't create calendars for add of YEAR");
2809 c1->add(Calendar::YEAR,(int32_t)9,status);
2815 errln("add(EDateField YEAR) had different effect than add(UCalendarField YEAR)");
2824 // Set the calendar to the last day in a leap year
2853 errln("FAIL: error while adding one year");
2860 // Setting an year followed by getActualMaximum(Calendar.WEEK_OF_YEAR)
2880 // Set a date in year 2009, but not calling get to resolve
2884 // Then call getActuamMaximum for week of year.
2885 // #8596 was caused by conflict between year set