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 - 2023
  • Field Details

  • Constructor Details

  • Method Details

    • getDafYomiYerushalmi

      public static Daf getDafYomiYerushalmi(JewishCalendar calendar)
      Returns the Daf Yomi Yerusalmi page (Daf) for a given date. The first Daf Yomi cycle started on 15 Shevat (Tu Bishvat), 5740 (February, 2, 1980) and calculations prior to this date will result in an IllegalArgumentException thrown. A null will be returned on Tisha B'Av or Yom Kippur.
      Parameters:
      calendar - the calendar date for calculation
      Returns:
      the Daf or null if the date is on Tisha B'Av or Yom Kippur.
      Throws:
      IllegalArgumentException - if the date is prior to the February 2, 1980, the start of the first Daf Yomi Yerushalmi cycle
    • getNumOfSpecialDays

      private static int getNumOfSpecialDays(Calendar start, Calendar end)
      Return the number of special days (Yom Kippur and Tisha Beav) That there is no Daf in this days. From the last given number of days until given date
      Parameters:
      start - start date to calculate
      end - end date to calculate
      Returns:
      the number of special days
    • isBetween

      private static boolean isBetween(Calendar start, Calendar date, Calendar end)
      Return if the date is between two dates
      Parameters:
      start - the start date
      date - the date being compared
      end - the end date
      Returns:
      if the date is between the start and end dates
    • getDiffBetweenDays

      private static long getDiffBetweenDays(Calendar start, Calendar end)
      Return the number of days between the dates passed in
      Parameters:
      start - the start date
      end - the end date
      Returns:
      the number of days between the start and end dates