|
|
|
|
|
by adityapurwa
700 days ago
|
|
If granular accuracy is not an important factor, you can also use Islamic calendar to calculate the moon phase. Muslims uses lunar cycles for some religious events (e.g. the Ayyamul Bidh or 3 days fasting during full moon). So when its 15 of an Islamic calendar, it’ll be a full moon. I used this approach because most platforms supports islamic calendar. I really like the offline first approach, and would definitely use the library when there’s a need. Thanks for sharing! |
|
What if there's a bug in the calendar for Ramadan or Salah?