Home | History | Annotate | Download | only in util

Lines Matching refs:year

48  * So When its a leap year in Gregorian calendar then Chaitra has 31 days.
51 * Years are counted in the Saka Era, which starts its year 0 in 78AD (by gregorian calendar).
73 * Constant for Chaitra, the 1st month of the Indian year.
78 * Constant for Vaisakha, the 2nd month of the Indian year.
83 * Constant for Jyaistha, the 3rd month of the Indian year.
88 * Constant for Asadha, the 4th month of the Indian year.
93 * Constant for Sravana, the 5th month of the Indian year.
98 * Constant for Bhadra, the 6th month of the Indian year.
103 * Constant for Asvina, the 7th month of the Indian year.
108 * Constant for Kartika, the 8th month of the Indian year.
113 * Constant for Agrahayana, the 9th month of the Indian year.
118 * Constant for Pausa, the 10th month of the Indian year.
123 * Constant for Magha, the 11th month of the Indian year.
128 * Constant for Phalguna, the 12th month of the Indian year.
226 * @param year The value used to set the calendar's {@link #YEAR YEAR} time field.
234 public IndianCalendar(int year, int month, int date) {
236 this.set(Calendar.YEAR, year);
246 * @param year The value used to set the calendar's {@link #YEAR YEAR} time field.
260 public IndianCalendar(int year, int month, int date, int hour,
264 this.set(Calendar.YEAR, year);
282 // The Indian year starts 80 days later than the Gregorian year.
289 int year;
291 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR) {
292 year = internalGet(EXTENDED_YEAR, 1);
295 year = internalGet(YEAR, 1);
298 return year;
338 IndianYear = gregorianDay[0] - INDIAN_ERA_START; // Year in Saka era
339 jdAtStartOfGregYear = gregorianToJD(gregorianDay[0], 1, 1); // JD at start of Gregorian year
340 yday = (int)(julianDay - jdAtStartOfGregYear); // Day number in Gregorian year (starting from 0)
343 // Day is at the end of the preceding Saka year
345 leapMonth = isGregorianLeap(gregorianDay[0] - 1) ? 31 : 30; // Days in leapMonth this year, previous Gregorian year
348 leapMonth = isGregorianLeap(gregorianDay[0]) ? 31 : 30; // Days in leapMonth this year
369 internalSet(YEAR, IndianYear);
379 { -5000000, -5000000, 5000000, 5000000}, // YEAR
413 protected int handleComputeMonthStart(int year, int month, boolean useMonth) {
418 // If the month is out of range, adjust it into range, and adjust the extended year accordingly
420 year += month / 12;
426 double jd = IndianToJD(year ,imonth, 1);
435 * @param year The year in Saka Era according to Indian calendar.
439 private static double IndianToJD(int year, int month, int date) {
443 gyear = year + INDIAN_ERA_START;
474 * @param year The year in standard Gregorian calendar (AD/BC) .
478 private static double gregorianToJD(int year, int month, int date) {
480 int y = year - 1;
486 + ((month <= 2) ? 0 : (isGregorianLeap(year) ? -1 : -2))
499 int year, month, day;
510 year = (int)((quadricent * 400) + (cent * 100) + (quad * 4) + yindex);
513 year++;
516 yearday = wjd - gregorianToJD(year, 1, 1);
517 leapadj = ((wjd < gregorianToJD(year, 3, 1)) ? 0
519 (isGregorianLeap(year) ? 1 : 2)
523 day = (int)(wjd - gregorianToJD(year, month, 1)) + 1;
527 julianDate[0] = year;
536 * This routine checks if the Gregorian year is a leap year"
537 * @param year The year in Gregorian Calendar
539 private static boolean isGregorianLeap(int year)
541 return ((year % 4) == 0) &&
542 (!(((year % 100) == 0) && ((year % 400) != 0)));