Skip to content

Syncing up to Adhan v1.4.0

Compare
Choose a tag to compare
@insha insha released this 17 Sep 23:53
· 7 commits to master since this release
f88e3ee

Changes include:

  • Adding Shafaq enum
  • Adding Rounding enum; allows for customization on how the final prayer times are rounded using, Nearest, Up, or None variants
  • Adding Maghrib angle to the Parameter struct
  • Adding a proptery called rounding to the Parameter struct to use the Rounding enum
  • Adding a property called shafaq to the Parameter struct, using the Shafaq enum
  • Replaced nearest_minute method with rounded_minute; This method takes a parameter of type Rounding
  • Updating method signature of season_adjusted_evening_twilight(latitude:day:year:sunset:shafaq:) with the the Shafaq enum
  • Adding doc comments
  • Using the rounding method for Singapore Method
  • Adding Turkey to the Method enum
  • Adding Tehran to the Method enum; this method uses the newly added maghrib_angle property of the Parameter struct.
  • Adding recomended method; based on the latitude of the provided location a variant of the HighLatitudeRule is returned
  • Adding and updating tests
  • Code formatting
  • Updating copyright
  • Documenting changes in the readme.md file