Home | History | Annotate | Download | only in util

Lines Matching defs:month

36  * Each month of the calendar starts when the new moon's crescent is visible
44 * and 30-day months, with a leap day added to the last month of 11 out of
56 * start of a month in the religious calendar to differ from the civil calendar
61 * of a lunar month with a fairly high degree of certainty. However, these
94 * Constant for Muharram, the 1st month of the Islamic year.
99 * Constant for Safar, the 2nd month of the Islamic year.
104 * Constant for Rabi' al-awwal (or Rabi' I), the 3rd month of the Islamic year.
109 * Constant for Rabi' al-thani or (Rabi' II), the 4th month of the Islamic year.
114 * Constant for Jumada al-awwal or (Jumada I), the 5th month of the Islamic year.
119 * Constant for Jumada al-thani or (Jumada II), the 6th month of the Islamic year.
124 * Constant for Rajab, the 7th month of the Islamic year.
129 * Constant for Sha'ban, the 8th month of the Islamic year.
134 * Constant for Ramadan, the 9th month of the Islamic year.
139 * Constant for Shawwal, the 10th month of the Islamic year.
144 * Constant for Dhu al-Qi'dah, the 11th month of the Islamic year.
149 * Constant for Dhu al-Hijjah, the 12th month of the Islamic year.
255 * @param month the value used to set the {@link #MONTH MONTH} time field in the calendar.
256 * Note that the month value is 0-based. e.g., 0 for Muharram.
260 public IslamicCalendar(int year, int month, int date)
264 this.set(Calendar.MONTH, month);
273 * @param month the value used to set the {@link #MONTH MONTH} time field in the calendar.
274 * Note that the month value is 0-based. e.g., 0 for Muharram.
284 public IslamicCalendar(int year, int month, int date, int hour,
289 this.set(Calendar.MONTH, month);
352 { 0, 0, 11, 11}, // MONTH
375 * bit map array where a bit turned on represents a month with 30 days.
579 * Return the day # on which the given month starts. Days are counted
583 * @param month The hijri month, 0-based
585 private long monthStart(int year, int month) {
586 // Normalize year/month in case month is outside the normal bounds, which may occur
588 int realYear = year + month / 12;
589 int realMonth = month % 12;
600 for(int i=0; i< month; i++) {
609 * Find the day number on which a particular month of the true/lunar
612 * @param month The month in question, origin 0 from the Hijri epoch
614 * @return The day number on which the given month starts.
616 private static final long trueMonthStart(long month)
618 long start = cache.get(month);
622 // Make a guess at when the month started, using the average length
624 + (long)Math.floor(month * CalendarAstronomer.SYNODIC_MONTH) * ONE_DAY;
629 // The month has already started
636 // Preceding month has not ended yet.
645 cache.put(month, start);
706 * Return the length (in days) of the given month.
709 * @param month The hijri month, 0-based
712 protected int handleGetMonthLength(int extendedYear, int month) {
719 length = 29 + (month+1) % 2;
720 if (month == DHU_AL_HIJJAH && civilLeapYear(extendedYear)) {
725 month = 12*(extendedYear-1) + month;
726 length = (int)( trueMonthStart(month+1) - trueMonthStart(month) );
730 int mask = (0x01 << (11 - month)); // set mask for bit corresponding to month
752 int month = 12*(extendedYear-1);
753 length = (int)(trueMonthStart(month + 12) - trueMonthStart(month));
766 // Return JD of start of given month/year
769 // If useMonth is true, get the day before the start of the month.
774 protected int handleComputeMonthStart(int eyear, int month, boolean useMonth) {
775 return (int)(monthStart(eyear, month) + ((cType == CalculationType.ISLAMIC_TBLA)? ASTRONOMICAL_EPOC: CIVIL_EPOC) - 1);
801 * <li>MONTH
812 int year =0, month=0, dayOfMonth=0, dayOfYear=0;
822 month = (int)Math.ceil((days - 29 - yearStart(year)) / 29.5 );
823 month = Math.min(month, 11);
831 // If we're near the end of the month, assume next month and search backwards
838 // If it was after the date in question, back up a month and try again
843 month = months % 12;
849 month = (int)Math.ceil((days - 29 - yearStart(year)) / 29.5 );
850 month = Math.min(month, 11);
872 month = m;
877 dayOfMonth = (int)(days - monthStart(year, month)) + 1;
886 internalSet(MONTH, month);