Re: date() before 1 Jan 1970...

From: Date: Tue, 09 Mar 2004 05:04:42 +0000
Subject: Re: date() before 1 Jan 1970...
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-179871@lists.php.net to get a copy of this message
Ben Ramsey wrote:
$old_date = mktime(0, 11, 18, 1, 1, 1903); echo date("Y-m-d H:i:s", $old_date);
Argh! I had the numbers reversed. It should be: $old_date = mktime(18, 11, 0, 1, 1, 1903); But you get the idea... -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey

« previous php.general (#179871) next »