RE: [PHP] Months since the Epoch

From: Date: Sat, 28 Oct 2000 08:12:55 +0000
Subject: RE: [PHP] Months since the Epoch
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-22424@lists.php.net to get a copy of this message
On 28-Oct-00 Michael Conley wrote: > I need to store the number of months that have passed since the Epoch. Has > anybody already written this type of code? month ? gregorian: (cur_year - 1970) * 12) + cur_mon-1 // Jan, Feb ... lunar : (time() / 86400) / 29.5306 // new moon -> new moon solar : (time() / 86400) / 30.4369 // equinox -> equinox at lat. Numbers from http://www.rog.nmm.ac.uk/leaflets/calendar/calendar.html Regards, -- Don Read dread@texas.net There are old sailors, and there are foolish sailors; but damn few old foolish sailors. ---------------------------------------------

« previous php.general (#22424) next »