User:Sirwhiteout/Sandbox/Selune-phase

It has been days since Selûne was last full. There have been principal phases since the last full moon. It has been days since the last principal phase.

Test variables
What day it is (test):

Duration of the synodic month:

Days between quarter phases:

How many days since Jan 1st of the last leap year (test):

What day of the lunar cycle it is (test):

How many principal phases after full:

Days since last principal phase:

Parameters for today
How many days since last Jan 1:

How many years since the last leap year:

How many days since Jan 1 of the last leap year:

What day of the lunar cycle it is (goes from 0 to 30):