Lines Matching refs:year

42  * calendar system in which the imperial era-based year numbering is
57 * the Gregorian year values are used. Unlike {@link
61 * Gregorian year 1, 0 and negative values are used. The Japanese
241 // Calculate the least maximum year and least day of Year
243 // era transition in a Gregorian year.
244 int year = Integer.MAX_VALUE;
259 // Unless the first year starts from January 1, the actual
260 // max value could be one year short. For example, if it's
265 year = Math.min(y, year);
267 LEAST_MAX_VALUES[YEAR] = year; // Max year could be smaller than this value.
594 int year = jdate.getYear();
595 if (year == getMaximum(YEAR)) {
601 // To avoid overflow, use an equivalent year.
619 } else if (year == getMinimum(YEAR)) {
625 // To avoid underflow, use an equivalent year.
678 // The year has only one month. No need to
679 // process further. (Showa Gan-nen (year 1)
680 // and the last year have only one month.)
710 int year = jdate.getYear();
711 if (year == getMaximum(YEAR)) {
713 } else if (year == getMinimum(YEAR)) {
731 if (year != getMinimum(YEAR)) {
830 // Transition handling. We can't change year and era
853 // Handle transition. We can't change year and era values
868 // If the week of year is in the same year, we can
878 // We need to handle it in a different way around year
879 // boundaries and in the transition year. Note that
880 // changing era and year values violates the roll
916 // Transition year handling.
1198 // Use the same year in jd to take care of leap
1210 // Use an equvalent year of d.getYear() if
1211 // possible. Otherwise, ignore the leap year and
1212 // common year difference.
1276 * is 29 because Heisei 16 is a leap year, and if the date of this
1306 // TODO: there may be multiple transitions in a year.
1337 // Handle transition year.
1338 // TODO: there may be multiple transitions in a year.
1403 // Get the day of week of January 1 of the year
1494 // Use an equivalent year for the
1503 // Use the same year as d.getYear() to be
1522 * year. In the year for Long.MIN_VALUE, it's a pseudo value
1651 int year = jdate.getYear();
1655 internalSet(YEAR, year);
1703 // If it's a year of an era transition, we need to handle
1704 // irregular year boundaries.
1731 // previous year, use the week number of "12/31" of
1732 // the "previous" year. Again, if the previous year is
1733 // a transition year, we need to take care of it.
1734 // Usually the previous day of the first day of a year
1749 // year. Historically there was such
1879 int year;
1884 year = isSet(YEAR) ? internalGet(YEAR) : 1;
1888 year = internalGet(YEAR);
1892 year = 45;
1925 fixedDate += getFixedDate(era, year, fieldMask);
1991 * Julian calendar, using the given year and the specified calendar fields.
1994 * @param year the normalized year number, with 0 indicating the
1995 * year 1 BCE, -1 indicating 2 BCE, etc.
2000 private long getFixedDate(int era, int year, int fieldMask) {
2010 year += month / 12;
2014 year += CalendarUtils.floorDivide(month, 12, rem);
2018 if (year == 1 && era != 0) {
2025 // Adjust the base date if year is the minimum value.
2026 if (year == MIN_VALUES[YEAR]) {
2037 date.setDate(year, month + 1, firstDayOfMonth);
2041 // the first day of either `month' or January in 'year'.
2098 int lastDate = monthLength(month, year) + (7 * (dowim + 1));
2106 // We are on the first day of the year.
2136 * Returns the fixed date of the first day of the year (usually
2139 * @param date the date for which the first day of the year is
2140 * calculated. The date has to be in the cut-over year.
2149 // There might be multiple era transitions in a year.
2166 * calculated. The date must be in the era transition year.
2198 * Gregorian year. The year number must be normalized.
2208 * Returns the length of the specified month in the year provided
2307 int year = date.getYear();
2309 if (year != getMinimum(YEAR)) {
2323 // Use an equivalent year.
2341 // restore the year.
2342 date.setDate(year, realDate.getMonth(), realDate.getDayOfMonth());