Class YerushalmiYomiCalculator
java.lang.Object
com.kosherjava.zmanim.hebrewcalendar.YerushalmiYomiCalculator
- Author:
- © elihaidv, © Eliyahu Hershfeld 2017 - 2026
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int[]number of pages (blatt/dafim) per masechtaprivate static final LocalDateStart date of first Daf Yomi Yerushalmi cycle: 1980-02-02private static final intnumber of pages (blatt/dafim) in Shas -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DafgetDafYomiYerushalmi(JewishCalendar jewishCalendar) Returns the Daf Yomi Yerushalmi page for a given Jewish date.private static longgetDiffBetweenDays(LocalDate start, LocalDate end) Returns the number of full days between twoZonedDateTimes.private static LocalDategetNextCycleStart(LocalDate cycleStart) Returns the start date of the cycle after the one beginning oncycleStart.private static intgetNumOfSpecialDays(LocalDate start, LocalDate end) Counts the number of "special days" (Yom Kippur, Tisha B’Av) between two dates.private static booleanChecks if a date is on or after start and on or before end.
-
Field Details
-
DAF_YOMI_START_DAY
Start date of first Daf Yomi Yerushalmi cycle: 1980-02-02 -
WHOLE_SHAS_DAFS
-
BLATT_PER_MASECHTA
number of pages (blatt/dafim) per masechta
-
-
Constructor Details
-
YerushalmiYomiCalculator
public YerushalmiYomiCalculator()Default constructor.
-
-
Method Details
-
getDafYomiYerushalmi
Returns the Daf Yomi Yerushalmi page for a given Jewish date. Returns null on Yom Kippur or Tisha B’Av.- Parameters:
jewishCalendar- theJewishCalendarto set.- Returns:
- the daf.
-
getNextCycleStart
Returns the start date of the cycle after the one beginning oncycleStart. 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
Counts the number of "special days" (Yom Kippur, Tisha B’Av) between two dates.- Parameters:
start- the start date for the calculationend- the end date for the calculation- Returns:
- the number of special days
-
isBetween
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 startZonedDateTimedate- theZonedDateTimeto checkend- the endZonedDateTime- Returns:
- if the date is between the two dates
-
getDiffBetweenDays
Returns the number of full days between twoZonedDateTimes.- Parameters:
start- the startZonedDateTimeend- the endZonedDateTime- Returns:
- the number of days between the dates.
-