note 41385 deleted from function.date by derick
| From: | derick@php.net | Date: | Sat, 22 May 2004 13:51:26 +0000 |
| Subject: | note 41385 deleted from function.date by derick | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-69952@lists.php.net to get a copy of this message | ||
Note Submitter: bkreleger (at) phphulp (dot) nl
----
To generate the timestamp mysql uses when using 'timestamp', you can use the php code:
<?
// this generates f.e.: 20040704091734
$mysql_timestamp = date("YmdHis");
?>
I used it when I had to compare something with PHP using a mysql timestamp..