1
1
/*
2
2
* Zmanim Java API
3
- * Copyright (C) 2011-2020 Eliyahu Hershfeld
3
+ * Copyright (C) 2011-2025 Eliyahu Hershfeld
4
4
*
5
5
* This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General
6
6
* Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option)
23
23
* use the {@link YerushalmiYomiCalculator}. The library may cover Mishna Yomi etc. at some point in the future.
24
24
*
25
25
* @author © Bob Newell (original C code)
26
- * @author © Eliyahu Hershfeld 2011 - 2020
26
+ * @author © Eliyahu Hershfeld 2011 - 2025
27
27
*/
28
28
public class YomiCalculator {
29
29
@@ -43,6 +43,13 @@ public class YomiCalculator {
43
43
* @see #getDafYomiBavli(JewishCalendar) for details.
44
44
*/
45
45
private static final int shekalimJulianChangeDay = getJulianDay (shekalimChangeDay );
46
+
47
+ /**
48
+ * Default constructor.
49
+ */
50
+ public YomiCalculator () {
51
+ // nothing here
52
+ }
46
53
47
54
/**
48
55
* Returns the <a href="http://en.wikipedia.org/wiki/Daf_yomi">Daf Yomi</a> <a
@@ -52,7 +59,7 @@ public class YomiCalculator {
52
59
* that a change in length of the cycle was instituted starting in the eighth Daf Yomi cycle beginning on June 24,
53
60
* 1975. The Daf Yomi Bavli cycle has a single masechta of the Talmud Yerushalmi - Shekalim as part of the cycle.
54
61
* Unlike the Bavli where the number of daf per masechta was standardized since the original <a
55
- * href="http://en.wikipedia.org/wiki/Daniel_Bomberg">Bomberg Edition</a> published from 1520 to 1523, there is no
62
+ * href="http://en.wikipedia.org/wiki/Daniel_Bomberg">Bomberg Edition</a> published from 1520 - 1523, there is no
56
63
* uniform page length in the Yerushalmi. The early cycles had the Yerushalmi Shekalim length of 13 days following the
57
64
* <a href=
58
65
* "https://he.wikipedia.org/wiki/%D7%93%D7%A4%D7%95%D7%A1_%D7%A1%D7%9C%D7%90%D7%95%D7%95%D7%99%D7%98%D7%90">Slavuta/Zhytomyr</a>
@@ -66,7 +73,7 @@ public class YomiCalculator {
66
73
* @return the {@link Daf}.
67
74
*
68
75
* @throws IllegalArgumentException
69
- * if the date is prior to the September 11, 1923, start date of the first Daf Yomi cycle
76
+ * if the date is prior to the September 11, 1923, the start date of the first Daf Yomi cycle.
70
77
*/
71
78
public static Daf getDafYomiBavli (JewishCalendar jewishCalendar ) {
72
79
/*
@@ -103,24 +110,25 @@ public static Daf getDafYomiBavli(JewishCalendar jewishCalendar) {
103
110
if (cycleNo <= 7 ) {
104
111
blattPerMasechta [4 ] = 13 ;
105
112
}
113
+
106
114
// Finally find the daf.
107
- for (int i : blattPerMasechta ) {
108
- masechta ++;
109
- total = total + i - 1 ;
110
- if (dafNo < total ) {
111
- blatt = 1 + i - (total - dafNo );
112
- // Fiddle with the weird ones near the end.
113
- if (masechta == 36 ) {
114
- blatt += 21 ;
115
- } else if (masechta == 37 ) {
116
- blatt += 24 ;
117
- } else if (masechta == 38 ) {
118
- blatt += 32 ;
119
- }
120
- dafYomi = new Daf (masechta , blatt );
121
- break ;
122
- }
123
- }
115
+ for (int i : blattPerMasechta ) {
116
+ masechta ++;
117
+ total = total + i - 1 ;
118
+ if (dafNo < total ) {
119
+ blatt = 1 + i - (total - dafNo );
120
+ // Fiddle with the weird ones near the end.
121
+ if (masechta == 36 ) {
122
+ blatt += 21 ;
123
+ } else if (masechta == 37 ) {
124
+ blatt += 24 ;
125
+ } else if (masechta == 38 ) {
126
+ blatt += 32 ;
127
+ }
128
+ dafYomi = new Daf (masechta , blatt );
129
+ break ;
130
+ }
131
+ }
124
132
125
133
return dafYomi ;
126
134
}
0 commit comments