Moon phase

Calculating moon phases accurately is a bit more tricky that it seems.
However, if you don’t need to be extremely precise, you can use the fact that the time from full moon to full moon is 29.53 days or 709 hours average.
If you want to be really accurate, refer to table lookups and additional formulaes.

In my prototype I use only some simple calculations borrowed from this forum entry

I should write some unit tests and verify some random dates against some known moon phase tables.

Calendar 2014 from

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s