Re: convert mysql datetime to unix timestamp
| From: | Adam Voigt | Date: | Mon, 28 Jul 2003 16:09:09 +0000 |
| Subject: | Re: convert mysql datetime to unix timestamp | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-157196@lists.php.net to get a copy of this message | ||
Tried passing it through strtotime?
Example:
echo(date('U',strtotime($string)));
On Mon, 2003-07-28 at 12:06, Chris Hayes (SENSE) wrote:
> hi,
> i have to move data from a table with a datetime (2003-05-14 13:36:04) to a
> unix timestamp (e.g. 2147483647) . Any ideas?
>
> Chris
--
Adam Voigt (adam@cryptocomm.com)
Linux/Unix Network Administrator
The Cryptocomm Group