Oh, and for those interested in such things, the formula I used for the moon phase was
This gives the age of the moon in days ( assuming a fixed lunar synodic period ).
The number 585122000 is the time in milliseconds between the 1 Jan 1970 ( the start date for the #DNOW# tag ) and what would have been the approximate date/time for the first new moon after that date if the synodic period was constant. This number was obtained empirically by recursively solving for the "new moon date/time" in order to minimise the RMS value of the difference between the full moon dates/times predicted by the above formula and the dates/times for the full moon over the next 10 years from published tables.
This formula results in the following variation between predicted and actual date/time of the full moon ( in days ):
with an RMS value of about 0.3 days.
Choosing an actual historic new moon date as the offset in the equation, instead of a calculated value, will, in general, produce a significant offset to the above curve, and thus exacerbating the already quite large "error" between the average synodic period based prediction and the actual moon phase.
If you want to convert between the "Unix timestamp" ( given by #DNOW# ) and human readable date/time you can use the online tools at:
for example, 585122000 is equivalent to GMT: Wednesday, January 7, 1970 6:32:02 PM
( versus the actual new moon time of 7 Jan 8:35 pm; using this time would add an additional constant offset/error to the prediction formula of around 3hrs ).
Note that the timestamp entry in the tool is in seconds ( so, eg. 585122000 / 1000 )
Truly accurate values/predictions for the dates and times of past and future moon phases can be obtained from the US Naval Observatory - https://aa.usno.navy.mil/data/docs/MoonPhase.php