Lines Matching full:year
587 {/*N/A*/-1, /*N/A*/-1, /*N/A*/-1, /*N/A*/-1}, // YEAR
633 // local fields (YEAR, MONTH, DATE, HOUR, MINUTE, etc.)
655 // local fields (YEAR, MONTH, DATE, HOUR, MINUTE, etc.)
1126 Calendar::set(int32_t year, int32_t month, int32_t date)
1128 set(UCAL_YEAR, year);
1136 Calendar::set(int32_t year, int32_t month, int32_t date, int32_t hour, int32_t minute)
1138 set(UCAL_YEAR, year);
1148 Calendar::set(int32_t year, int32_t month, int32_t date, int32_t hour, int32_t minute, int32_t second)
1150 set(UCAL_YEAR, year);
1328 // EXTENDED_YEAR, YEAR, DAY_OF_YEAR. This method will call internalSet(),
1365 * Compute the Gregorian calendar year, month, and day of month from
1388 * Compute the Gregorian calendar year, month, and day of month from the
1401 * DAY_OF_WEEK_IN_MONTH, and DOW_LOCAL from EXTENDED_YEAR, YEAR,
1405 * <p>The YEAR_WOY field is computed simplistically. It is equal to YEAR
1406 * most of the time, but at the year boundary it may be adjusted to YEAR-1
1407 * or YEAR+1 to reflect the overlap of a week into an adjacent year. In
1408 * this case, a simple increment or decrement is performed on YEAR, even
1409 * though this may yield an invalid YEAR value. For instance, if the YEAR
1410 * is part of a calendar system with an N-year cycle field CYCLE, then
1411 * incrementing the YEAR may involve incrementing CYCLE and setting YEAR
1414 * fields for fields larger than or equal to a year. This additional
1417 * proleptic Gregorian calendar, which has no field larger than a year.
1428 // Compute the week of the year. For the Gregorian calendar, valid week
1429 // numbers run from 1 to 52 or 53, depending on the year, the first day
1431 // calendars, the valid range may be different -- it depends on the year
1432 // length. Days at the start of the year may fall into the last week of
1433 // the previous year; days at the end of the year may fall into the
1434 // first week of the next year. ASSUME that the year length is less than
1444 // Adjust for weeks at the year end that overlap into the previous or
1445 // next calendar year.
1447 // We are the last week of the previous year.
1450 // next year.
1457 // Fast check: For it to be week 1 of the next year, the DOY
1459 // cannot possibly be week 1 of the next year:
1492 // in question (either a year or a month). Zero represents the
1639 // else era is unbounded, just pin low year instead of wrapping
1644 // calendars with years that go backwards must pin the year value at 0,
1656 // Rolling the year can involve pinning the DAY_OF_MONTH.
1746 // to the whole year. Please see the comment for WEEK_OF_MONTH
1755 // of the year.
1759 // Get the first day of the first full week of the year,
1770 // day of the year.
1775 // Get the limit day for the blocked-off rectangular year; that
1776 // is, the day which is one past the last day of the year,
1777 // after the year has already been filled in with phantom days
1792 // Make sure that the year and day of year are attended to by
1802 // Roll the day of year using millis. Compute the millis for
1803 // the start of the year, and get the length of the year.
2050 // February 29, 2004. If 1, 1, 1, 1 is added to the year
2674 { kResolveRemap | UCAL_DAY_OF_MONTH, UCAL_YEAR, kResolveSTOP }, // if YEAR is set over YEAR_WOY use DAY_OF_MONTH
2700 // precedence for calculating a year
2970 int32_t year;
2973 year = internalGet(UCAL_YEAR_WOY, handleGetExtendedYear());
2974 internalSet(UCAL_EXTENDED_YEAR, year);
2976 year = handleGetExtendedYear();
2977 internalSet(UCAL_EXTENDED_YEAR, year);
2981 fprintf(stderr, "%s:%d: bestField= %s - y=%d\n", __FILE__, __LINE__, fldName(bestField), year);
2984 // Get the Julian day of the day BEFORE the start of this year.
2993 month = getDefaultMonthInYear(year);
2996 int32_t julianDay = handleComputeMonthStart(year, useMonth ? month : 0, useMonth);
3005 dayOfMonth = getDefaultDayInMonth(year, month);
3017 // January 1, year 1 of the given calendar. If julianDay == 0, it
3026 // Get the 0-based localized DOW of day one of the month or year.
3035 // Find the first target DOW (dowLocal) in the month or year.
3036 // Actually, it may be just before the first of the month or year.
3041 // Adjust the target DOW to be in the month or year.
3060 int32_t monthLength = handleGetMonthLength(year, m);
3073 // need to be sure to stay in 'real' year.
3076 int32_t nextJulianDay = handleComputeMonthStart(year+1, 0, FALSE); // jd of day before jan 1
3086 internalGet(bestField), resolveFields(kYearPrecedence), year+1,
3096 // Jan 1 of (yearWoy+1) is in yearWoy+1 - recalculate JD to next year
3123 __FILE__, __LINE__, year, year-1, testDate, julianDay+testDate, nextJulianDay);
3125 if(julianDay+testDate > nextJulianDay) { // is it past Dec 31? (nextJulianDay is day BEFORE year+1's Jan 1)
3126 // Fire up the calculating engines.. retry YWOY = (year-1)
3127 julianDay = handleComputeMonthStart(year-1, 0, FALSE); // jd before Jan 1 of previous year
3137 __FILE__, __LINE__, date, julianDay, year-1);
3143 } /* resolvefields(year) != year_woy */
3197 // what year we fall in, so that other code can set it properly.
3208 int32_t nextJan1Start = handleComputeMonthStart(yearWoy+1, 0, FALSE); // next year's Jan1 start
3211 // January 1, year 1 of the given calendar. If julianDay == 0, it
3220 // Get the 0-based localized DOW of day one of the month or year.
3232 UBool jan1InPrevYear = FALSE; // January 1st in the year of WOY is the 1st week? (i.e. first week is < minimal )
3233 //UBool nextJan1InPrevYear = FALSE; // January 1st of Year of WOY + 1 is in the first week?
3247 // the first week of January is in the previous year
3253 return yearWoy-1; // previous year
3255 return yearWoy; // in this year
3263 (woy-1)*7 + // add the weeks of the year
3270 // we are in week 52 or 53 etc. - actual year is yearWoy+1
3284 return yearWoy+1; // month 0, late woy = in the next year
3300 default: // assume the year is appropriate
3419 // or year will contain the first day of the week, and that the