Lines Matching refs:year

94  * Determine whether the given gregorian year is a Leap year 
96 static UBool isGregorianLeap(int32_t year)
98 return ((year % 4) == 0) && (!(((year % 100) == 0) && ((year % 400) != 0)));
108 * @param eyear The year in Saka Era
128 * Return the number of days in the given Indian year
130 * @param eyear The year in Saka Era.
138 * @param year The Gregorian year
142 static double gregorianToJD(int32_t year, int32_t month, int32_t date) {
144 (365 * (year - 1)) +
145 uprv_floor((year - 1) / 4) +
146 (-uprv_floor((year - 1) / 100)) +
147 uprv_floor((year - 1) / 400) +
150 (isGregorianLeap(year) ? -1 : -2)
163 int32_t year, month, day;
173 year = (int32_t)((quadricent * 400) + (cent * 100) + (quad * 4) + yindex);
175 year++;
177 yearday = wjd - gregorianToJD(year, 1, 1);
178 leapadj = ((wjd < gregorianToJD(year, 3, 1)) ? 0
180 (isGregorianLeap(year) ? 1 : 2)
183 day = (int32_t)(wjd - gregorianToJD(year, month, 1)) + 1;
185 gregorianDate[0] = year;
196 static double IndianToJD(int32_t year, int32_t month, int32_t date) {
200 gyear = year + INDIAN_ERA_START;
236 * Return JD of start of given month/year of Indian Calendar
237 * @param eyear The year in Indian Calendar measured from Saka Era (78 AD).
266 int32_t year;
269 year = internalGet(UCAL_EXTENDED_YEAR, 1); // Default to year 1
271 year = internalGet(UCAL_YEAR, 1); // Default to year 1
274 return year;
299 jdAtStartOfGregYear = gregorianToJD(gregorianYear, 1, 1); // JD at start of Gregorian year
300 yday = (int32_t)(julianDay - jdAtStartOfGregYear); // Day number in Gregorian year (starting from 0)
303 // Day is at the end of the preceding Saka year
305 leapMonth = isGregorianLeap(gregorianYear - 1) ? 31 : 30; // Days in leapMonth this year, previous Gregorian year
308 leapMonth = isGregorianLeap(gregorianYear) ? 31 : 30; // Days in leapMonth this year