Comment

Comment by adityapurwa

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!

parent adityapurwa 2 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton