note 11146 deleted from function.time by jimw
| From: | jimw@php.net | Date: | Sat, 08 Dec 2001 23:54:26 +0000 |
| Subject: | note 11146 deleted from function.time by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-22389@lists.php.net to get a copy of this message | ||
someone wrote a MySQL to unix timestamp function earlier. My version is as follows:
function totime($buffer)
{
$buffer =
mktime(substr($buffer,8,2),substr($buffer,10,2),substr($buffer,12,2),substr($buffer,4,2),substr($buffer,6,2),substr($buffer,0,4));
return($buffer);
}