note 44639 added to function.strtotime
| From: | aidan@php.net | Date: | Wed, 11 Aug 2004 18:26:42 +0000 |
| Subject: | note 44639 added to function.strtotime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-74495@lists.php.net to get a copy of this message | ||
To convert from a MySQL DateTime field to a unix timestamp, use this function:
http://aidan.dotgeek.org/lib/?file=function.convert_timestamp.php
Note. It is better to get MySQL to perform this manipulation for you, eg:
SELECT FROM_UNIXTIME(field)
More information on;
http://dev.mysql.com/doc/mysql/en/DATETIME.html
----
Manual Page -- http://www.php.net/manual/en/function.strtotime.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+44639
Delete -- http://master.php.net/manage/user-notes.php?action=delete+44639&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+44639&report=yes
Search -- http://master.php.net/manage/user-notes.php