View Source PrayerTimes.Calculation (prayer_times v0.1.0)

Handles the internal calculations for determining Islamic prayer times.

This module is primarily used by PrayerTimes to calculate accurate prayer times based on various methods and parameters like latitude, longitude, timezone, and date.

Details

The calculation involves converting the given date to the Julian date, computing the sun's position, and then adjusting the times according to the selected method and high latitude rules.

This module is not typically used directly in user applications; instead, use PrayerTimes.compute/1.

Supported Methods

  • :mwl: Muslim World League
  • :isna: Islamic Society of North America
  • :egypt: Egyptian General Authority of Survey
  • :makkah: Umm al-Qura University, Makkah
  • :karahci: University of Islamic Sciences, Karachi
  • :tehran: Institute of Geophysics, University of Tehran
  • :jafari: Shia Ithna-Ashari

Summary

Functions

Link to this function

adjust_high_lats(method, times)

View Source
Link to this function

adjust_high_lats_time(method, time, base, angle, night, clock_wise \\ true)

View Source
Link to this function

adjust_times(times, method, timezone, long)

View Source
Link to this function

apply_offsets(times, method)

View Source
Link to this function

asr_time(jdate, factor, time, lat)

View Source
Link to this function

compute_prayer_times(times, method, jdate, lat)

View Source
Link to this function

compute_times(method, jdate, tz, lat, long)

View Source
Link to this function

night_portion(angle, night, high_lats_method)

View Source
Link to this function

rise_set_angle(elevation \\ 0)

View Source
Link to this function

sun_angle_time(jdate, angle, time, lat, clockwise \\ true)

View Source