note 25575 deleted from function.strtotime by vincent
| From: | vincent@php.net | Date: | Thu, 11 Sep 2003 19:44:03 +0000 |
| Subject: | note 25575 deleted from function.strtotime by vincent | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-56180@lists.php.net to get a copy of this message | ||
Note Submitter: robemerick@hotmail.com
----
If you are trying to reformat timestamps stored in a MySQL database, there is no need for the time
function.
Instead use the UNIX_TIMESTAMP function built into MySQL.
Example: "SELECT UNIX_TIMESTAMP(field_name) FROM table_name"
Details at: http://www.mysql.com/doc/en/Date_and_time_functions.html