Skip to content

Commit 2d0ff91

Browse files
authored
Add docs about the Skaukat criterion to calendrical_calculations (#7331)
Split from #7325
1 parent 775be2f commit 2d0ff91

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

utils/calendrical_calculations/src/islamic.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,13 @@ pub fn fixed_from_observational_islamic(
5555
- 1
5656
}
5757

58+
/// Calculates an Islamic date from a [`RataDie`] and [`Location`].
59+
///
60+
/// This uses the phasis criterion proposed by S. K. Shaukat[^1], explained in Reingold section 14.9.
61+
///
5862
/// Lisp code reference: <https://github.com/EdReingold/calendar-code2/blob/1ee51ecfaae6f856b0d7de3e36e9042100b4f424/calendar.l#L6983-L6995>
63+
///
64+
/// [^1]: K. Abdali, O. Afzal, I. A. Ahmad, M. Durrani, A. Salama, and S. K. Shaukat, “Crescent Moon Visibility: Consensus on Moon-Sighting and Determination of an Islamic Calendar,” manuscript, 1996.
5965
pub fn observational_islamic_from_fixed(date: RataDie, location: Location) -> (i32, u8, u8) {
6066
let lunar_phase = Astronomical::calculate_new_moon_at_or_before(date);
6167
let crescent = Astronomical::phasis_on_or_before(date, location, Some(lunar_phase));

0 commit comments

Comments
 (0)