Class YerushalmiYomiCalculator

java.lang.Object
com.kosherjava.zmanim.hebrewcalendar.YerushalmiYomiCalculator

public class YerushalmiYomiCalculator extends Object
This class calculates the Talmud Yerusalmi Daf Yomi page (Daf) for the a given date.
Author:
© elihaidv, © Eliyahu Hershfeld 2017 - 2026
  • Field Details

  • Constructor Details

  • Method Details

    • getDafYomiYerushalmi

      public static Daf getDafYomiYerushalmi(JewishCalendar jewishCalendar)
      Returns the Daf Yomi Yerushalmi page for a given Jewish date. Returns null on Yom Kippur or Tisha B’Av.
      Parameters:
      jewishCalendar - the JewishCalendar to set.
      Returns:
      the daf.
    • getNextCycleStart

      private static LocalDate getNextCycleStart(LocalDate cycleStart)
      Returns the start date of the cycle after the one beginning on cycleStart. The cycle end is inclusive, so skipped days on the tentative end date extend the cycle.
      Parameters:
      cycleStart - the first day of the current cycle
      Returns:
      the first day of the following cycle
    • getNumOfSpecialDays

      private static int getNumOfSpecialDays(LocalDate start, LocalDate end)
      Counts the number of "special days" (Yom Kippur, Tisha B’Av) between two dates.
      Parameters:
      start - the start date for the calculation
      end - the end date for the calculation
      Returns:
      the number of special days
    • isBetween

      private static boolean isBetween(LocalDate start, LocalDate date, LocalDate end)
      Checks if a date is on or after start and on or before end. A cycle can start on, or be extended to start on, Yom Kippur or Tisha B'Av, so the start day is counted.
      Parameters:
      start - the start ZonedDateTime
      date - the ZonedDateTime to check
      end - the end ZonedDateTime
      Returns:
      if the date is between the two dates
    • getDiffBetweenDays

      private static long getDiffBetweenDays(LocalDate start, LocalDate end)
      Returns the number of full days between two ZonedDateTimes.
      Parameters:
      start - the start ZonedDateTime
      end - the end ZonedDateTime
      Returns:
      the number of days between the dates.