ecleel / hijri

Hijri date library for Ruby
https://rubygems.org/gems/hijri
MIT License
56 stars 20 forks source link

Adding Adjusment variable to to_hijri. #6

Closed YasminRodriguez1 closed 5 years ago

YasminRodriguez1 commented 6 years ago

The hijri dates depends on countries, so it will be great if you added Adjustment parameter that can help us to tune the output.

Example:

hijri_date = Date.today.to_hijri #equals = Friday 17 Ramadan while it is 16 Ramadan in Egypt.

so needed add would simple be

hijri_date = Date.today.to_hijri(-1) #equals = Friday 16 Ramadan

ecleel commented 5 years ago

the issue has been resolved in v0.6.0