I'd like to write a program that uses the exact (down to the second) amount of time from one new moon (or full moon) to the next.
Yet, I am told that this period is irregular.
Yet, it seems to be predicted in a number of places (ie, by the navy). How do they do this? http://aa.usno.navy.mil/data/docs/MoonPhase.php