Calculate the phase of the moon for a given date. Code heavily influenced by hacklib.c in Nethack The Algorithm: moon period = 29.53058 days ~= 30, year = 365.2422 days days moon phase advances on first day of year compared to preceding year
(Calendar cal)
source not stored for this graph (policy: none)