note 3208 deleted from ref.datetime by philip
| From: | philip@php.net | Date: | Tue, 30 Oct 2001 06:49:02 +0000 |
| Subject: | note 3208 deleted from ref.datetime by philip | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-19595@lists.php.net to get a copy of this message | ||
MySQL timestamp to date:
function mysql_to_epoch ($datestr) {
list($year,$month,$day,$hour,$minute,$second) = split("([^0-9])",$datestr);
return date("U",mktime($hour,$minute,$second,$month,$day,$year));
}