note 18971 added to function.date

From: Date: Tue, 12 Feb 2002 08:55:50 +0000
Subject: note 18971 added to function.date
Groups: php.notes 
Request: Send a blank email to php-notes+get-26498@lists.php.net to get a copy of this message
The MySQL timestamp format is NOT the same as the PHP timestamp format (otherwise known as the Unix timestamp format). MySQL uses a YYYYMMDDHHMMSS format whereas PHP uses a SSSSSSSSSSSS format (number of seconds since some date which I don't know, but which I doubt you ever really need to know either - enough to know it doesn't change). Example: Thursday 07th of February 2002 04:47:44 PM MySQL timestamp: 20020207164744 PHP (Unix) timestamp: 1013096864 -- http://www.php.net/manual/en/function.date.php http://master.php.net/manage/user-notes.php?action=edit+18971 http://master.php.net/manage/user-notes.php?action=delete+18971 http://master.php.net/manage/user-notes.php?action=reject+18971

« previous php.notes (#26498) next »