Class YerushalmiYomiCalculator
java.lang.Object
com.kosherjava.zmanim.hebrewcalendar.YerushalmiYomiCalculator
- Author:
- © elihaidv, © Eliyahu Hershfeld 2017 - 2023
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int[]
The number of pages per masechta (tractate).private static final Calendar
The start date of the first Daf Yomi Yerushalmi cycle of February 2, 1980 / 15 Shevat, 5740.private static final int
The number of milliseconds in a day.private static final int
The number of pages in the Talmud Yerushalmi. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Daf
getDafYomiYerushalmi
(JewishCalendar calendar) private static long
getDiffBetweenDays
(Calendar start, Calendar end) Return the number of days between the dates passed inprivate 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.private static boolean
Return if the date is between two dates
-
Field Details
-
DAF_YOMI_START_DAY
The start date of the first Daf Yomi Yerushalmi cycle of February 2, 1980 / 15 Shevat, 5740. -
DAY_MILIS
The number of milliseconds in a day.- See Also:
-
WHOLE_SHAS_DAFS
The number of pages in the Talmud Yerushalmi.- See Also:
-
BLATT_PER_MASECHTA
The number of pages per masechta (tractate).
-
-
Constructor Details
-
YerushalmiYomiCalculator
public YerushalmiYomiCalculator()
-
-
Method Details
-
getDafYomiYerushalmi
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
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 calculateend
- end date to calculate- Returns:
- the number of special days
-
isBetween
Return if the date is between two dates- Parameters:
start
- the start datedate
- the date being comparedend
- the end date- Returns:
- if the date is between the start and end dates
-
getDiffBetweenDays
Return the number of days between the dates passed in- Parameters:
start
- the start dateend
- the end date- Returns:
- the number of days between the start and end dates
-