note 84633 added to function.strtotime

From: Date: Wed, 23 Jul 2008 00:56:07 +0000
Subject: note 84633 added to function.strtotime
Groups: php.notes 
Request: Send a blank email to php-notes+get-142580@lists.php.net to get a copy of this message
This function can be used to convert the timestamp generated by MySQL NOW() function into UNIX timestamp. Example: Lets say MySQL NOW() returns '2008-07-23 06:07:42'. <?php $mysql_now='2008-07-23 06:07:42'; $time=strtotime($mysql_now); echo date(d M y, H:i:s,$time); //outputs: 23 Jul 08, 06:07:42 ?> Please note that the timestamp returned by mysql NOW() function may be the in the timezone of the server on which it was generated, and not always in GMT. ---- Server IP: 59.162.86.33 Probable Submitter: 221.128.190.219 ---- Manual Page -- http://www.php.net/manual/en/function.strtotime.php Edit -- https://master.php.net/note/edit/84633 Del: integrated -- https://master.php.net/note/delete/84633/integrated Del: useless -- https://master.php.net/note/delete/84633/useless Del: bad code -- https://master.php.net/note/delete/84633/bad+code Del: spam -- https://master.php.net/note/delete/84633/spam Del: non-english -- https://master.php.net/note/delete/84633/non-english Del: in docs -- https://master.php.net/note/delete/84633/in+docs Del: other reasons-- https://master.php.net/note/delete/84633 Reject -- https://master.php.net/note/reject/84633 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#142580) next »