Lines Matching refs:day
32 * time of day in sync with that of the Gregorian calendar, we use
33 * midnight, rather than sunset the day before.
363 // counting from noon on the day before. BAHARAD is an abbreviation of
368 * Finds the day # of the first day in the given Hebrew year.
390 int32_t day = CalendarCache::get(&gCache, year, status);
392 if (day == 0) {
395 int64_t frac = (int64_t)months * MONTH_FRACT + BAHARAD; // Fractional part of day #
396 day = months * 29 + (int32_t)(frac / DAY_PARTS); // Whole # part of calculation
397 frac = frac % DAY_PARTS; // Time of day
399 int32_t wd = (day % 7); // Day of week (0 == Monday)
402 // If the 1st is on Sun, Wed, or Fri, postpone to the next day
403 day += 1;
404 wd = (day % 7);
409 // This prevents 356-day years.
410 day += 2;
414 // on a Monday and *last* year was a leap year, postpone by 1 day.
415 // Prevents 382-day years.
416 day += 1;
418 CalendarCache::put(&gCache, year, day, status);
420 return day;
424 * Find the day of the week for a given day
426 * @param day The # of days since the start of the Hebrew calendar,
427 * 1-based (i.e. 1/1/1 AM is day 1).
429 int32_t HebrewCalendar::absoluteDayToDayOfWeek(int32_t day)
432 return (day % 7) + 1;
557 * calendar equivalents for the given Julian day.
568 int32_t ys = startOfYear(year, status); // 1st day of year
648 int32_t day = startOfYear(eyear, status);
656 day += LEAP_MONTH_START[month][yearType(eyear)];
658 day += MONTH_START[month][yearType(eyear)];
662 return (int) (day + 347997);