RE: [PHP-WIN] Bug in mktime-function ?

From: Date: Thu, 15 Feb 2001 15:15:32 +0000
Subject: RE: [PHP-WIN] Bug in mktime-function ?
Groups: php.general 
Request: Send a blank email to php-general+get-39909@lists.php.net to get a copy of this message
> Therefore any date on or before 1 Jan 1970 ain't going to > work using mktime or any PHP function which returns a > UNIX timestamp. I'm sorry, but this is wrong. The following works with no problems whatsoever. <script language="php"> $month = 3; $day = 9; $year = 1935; echo "Using $month/$day/$year<br>\n"; $oldDate = mktime( 0, 0, 0, $month, $day, $year ); echo "Unix timestamp for this date is $oldDate<br><br>\n"; echo "Reconverting... " . date( "F d, Y", $oldDate ); </script> Chris

« previous php.general (#39909) next »