Class YerushalmiYomiCalculator
java.lang.Object
com.kosherjava.zmanim.hebrewcalendar.YerushalmiYomiCalculator
- Author:
- © elihaidv, © Eliyahu Hershfeld 2017 - 2025
-
Field Summary
FieldsModifier 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
Constructors -
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, where there are no dafim), between the start date (as aCalendar
) and end date (also as aCalendar
).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
-
WHOLE_SHAS_DAFS
-
BLATT_PER_MASECHTA
The number of pages per masechta (tractate).
-
-
Constructor Details
-
YerushalmiYomiCalculator
public YerushalmiYomiCalculator()Default constructor.
-
-
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, where there are no dafim), between the start date (as aCalendar
) and end date (also as aCalendar
).- Parameters:
start
- date to start calculating fromend
- date to finish calculating at- Returns:
- the number of special days between the start and end dates
-
isBetween
-
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
-