Home | History | Annotate | Download | only in util

Lines Matching refs:month

25  * the lunar month (approximately 29.53 days) an extra "leap month" is
32 * The leap month is known as "Adar 1" and is inserted between the
33 * months of Shevat and Adar in leap years. Since the leap month does
35 * month numbers are particularly complex. Users of this class should
84 * Constant for Tishri, the 1st month of the Hebrew year.
89 * Constant for Heshvan, the 2nd month of the Hebrew year.
94 * Constant for Kislev, the 3rd month of the Hebrew year.
99 * Constant for Tevet, the 4th month of the Hebrew year.
104 * Constant for Shevat, the 5th month of the Hebrew year.
109 * Constant for Adar I, the 6th month of the Hebrew year
111 * jumps from Shevat (5th month) to Adar (7th month).
116 * Constant for the Adar, the 7th month of the Hebrew year.
121 * Constant for Nisan, the 8th month of the Hebrew year.
126 * Constant for Iyar, the 9th month of the Hebrew year.
131 * Constant for Sivan, the 10th month of the Hebrew year.
136 * Constant for Tammuz, the 11th month of the Hebrew year.
141 * Constant for Av, the 12th month of the Hebrew year.
146 * Constant for Elul, the 13th month of the Hebrew year.
163 { 0, 0, 12, 12 }, // MONTH
210 * The cumulative # of days to the end of each month in a non-leap year
233 * The cumulative # of days to the end of each month in a leap year
335 * @param month The value used to set the calendar's {@link #MONTH MONTH} time field.
341 public HebrewCalendar(int year, int month, int date) {
344 this.set(MONTH, month);
366 * @param month The value used to set the calendar's {@link #MONTH MONTH} time field.
378 public HebrewCalendar(int year, int month, int date, int hour,
383 this.set(MONTH, month);
403 * need to be changed. For example, when adding one to the {@link #MONTH MONTH} field
414 * of a <tt>HebrewCalendar</tt>. Since the {@link #MONTH MONTH} field behaves
426 case MONTH:
428 // We can't just do a set(MONTH, get(MONTH) + amount). The
433 int month = get(MONTH);
437 acrossAdar1 = (month < ADAR_1); // started before ADAR_1?
438 month += amount;
440 if (acrossAdar1 && month>=ADAR_1 && !isLeapYear(year)) {
441 ++month;
443 if (month <= ELUL) {
446 month -= ELUL+1;
451 acrossAdar1 = (month > ADAR_1); // started after ADAR_1?
452 month += amount;
454 if (acrossAdar1 && month<=ADAR_1 && !isLeapYear(year)) {
455 --month;
457 if (month >= 0) {
460 month += ELUL+1;
465 set(MONTH, month);
487 * need to be changed. For example, when rolling the {@link #MONTH MONTH} field
499 * of a <tt>HebrewCalendar</tt>. Since the {@link #MONTH MONTH} field behaves
511 case MONTH:
513 int month = get(MONTH);
518 int newMonth = month + (amount % yearLength);
520 // If it's not a leap year and we're rolling past the missing month
521 // of ADAR_1, we need to roll an extra month to make up for it.
524 if (amount > 0 && month < ADAR_1 && newMonth >= ADAR_1) {
526 } else if (amount < 0 && month > ADAR_1 && newMonth <= ADAR_1) {
530 set(MONTH, (newMonth + 13) % 13);
548 // An approximate value for the length of a lunar month.
549 // It is used to calculate the approximate year and month of a given
638 yearLength -= 30; // Subtract length of leap month.
688 * Returns the length of the given month in the given year
690 protected int handleGetMonthLength(int extendedYear, int month) {
693 // a 12- or 13-month year (add/subtract 12 or 13, depending
695 // the leap year determines whether or not month 5 (Adar 1)
697 while (month < 0) {
698 month += monthsInYear(--extendedYear);
701 while (month > 12) {
702 month -= monthsInYear(extendedYear++);
705 switch (month) {
708 // These two month lengths can vary
709 return MONTH_LENGTH[month][yearType(extendedYear)];
713 return MONTH_LENGTH[month][0];
728 * special handling for month validation for Hebrew calendar.
735 if (field == MONTH && !isLeapYear(handleGetExtendedYear()) && internalGet(MONTH) == ADAR_1) {
736 throw new IllegalArgumentException("MONTH cannot be ADAR_1(5) except leap years");
752 * <li>MONTH
780 // Now figure out which month we're in, and the date within that month
784 int month = 0;
785 while (dayOfYear > monthStart[month][yearType]) {
786 month++;
788 month--;
789 int dayOfMonth = dayOfYear - monthStart[month][yearType];
794 internalSet(MONTH, month);
816 * Return JD of start of given month/year.
818 protected int handleComputeMonthStart(int eyear, int month
822 // a 12- or 13-month year (add/subtract 12 or 13, depending
824 // the leap year determines whether or not month 5 (Adar 1)
826 while (month < 0) {
827 month += monthsInYear(--eyear);
830 while (month > 12) {
831 month -= monthsInYear(eyear++);
836 if (month != 0) {
838 day += LEAP_MONTH_START[month][yearType(eyear)];
840 day += MONTH_START[month][yearType(eyear)];