Template:Moons/today

From A KoL Wiki

7038


This evaluates the number of days since May 31 2006 03:31 UTC, one day before all three phases of the moons were ‘1’:

The constant 1149046260 is obtained via

{{#time: U|2006-05-31 03:31 UTC}}

and 86400 is the number of seconds in one day (discarding leap seconds). The rest of the code takes care of truncating fractional results.