Lines Matching refs:day
24 * on the day of (an arithmetic approximation of) each new moon. Since the
168 * time of day in sync with that of the Gregorian calendar, we use
169 * midnight, rather than sunset the day before.
582 // counting from noon on the day before. BAHARAD is an abbreviation of
587 * Finds the day # of the first day in the given Hebrew year.
608 long day = cache.get(year);
610 if (day == CalendarCache.EMPTY) {
613 long frac = months * MONTH_FRACT + BAHARAD; // Fractional part of day #
614 day = months * 29 + (frac / DAY_PARTS); // Whole # part of calculation
615 frac = frac % DAY_PARTS; // Time of day
617 int wd = (int)(day % 7); // Day of week (0 == Monday)
620 // If the 1st is on Sun, Wed, or Fri, postpone to the next day
621 day += 1;
622 wd = (int)(day % 7);
627 // This prevents 356-day years.
628 day += 2;
632 // on a Monday and *last* year was a leap year, postpone by 1 day.
633 // Prevents 382-day years.
634 day += 1;
636 cache.put(year, day);
638 return day;
642 * Find the day of the week for a given day
644 * @param day The # of days since the start of the Hebrew calendar,
645 * 1-based (i.e. 1/1/1 AM is day 1).
647 /*private static int absoluteDayToDayOfWeek(long day)
650 return (int)(day % 7) + 1;
787 * calendar equivalents for the given Julian day.
798 long ys = startOfYear(year); // 1st day of year
864 long day = startOfYear(eyear);
868 day += LEAP_MONTH_START[month][yearType(eyear)];
870 day += MONTH_START[month][yearType(eyear)];
874 return (int) (day + 347997);