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 - 2020
  • 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 To Bishvat 5740 (February, 2, 1980) and calculations prior to this date will result in an IllegalArgumentException thrown.
      Parameters:
      calendar - the calendar date for calculation
      Returns:
      the Daf.
      Throws:
      IllegalArgumentException - if the date is prior to the September 11, 1923 start date of the first Daf Yomi 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