note 42154 added to ref.mysql

From: Date: Wed, 05 May 2004 13:55:20 +0000
Subject: note 42154 added to ref.mysql
Groups: php.notes 
Request: Send a blank email to php-notes+get-69233@lists.php.net to get a copy of this message
If you need to convert a MySQL timestamp into a Unix timestamp try this function: <?php function st2ut ($t) { $year = substr ($t, 0, 4); $month = substr ($t, 4, 2); $day = substr ($t, 6, 2); $hour = substr ($t, 8, 2); $minute = substr ($t, 10, 2); $second = substr ($t, 12, 2); return mktime ($hour, $minute, $second, $month, $day, $year); } ?> ---- Manual Page -- http://www.php.net/manual/en/ref.mysql.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+42154 Delete -- http://master.php.net/manage/user-notes.php?action=delete+42154&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+42154&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#69233) next »