note 37893 added to function.strtotime

From: Date: Mon, 01 Dec 2003 16:35:23 +0000
Subject: note 37893 added to function.strtotime
Groups: php.notes 
Request: Send a blank email to php-notes+get-61217@lists.php.net to get a copy of this message
There is another way to do so: insert a date into your mySQL-db using the function FROM_UNIXTIME(), it converts the unix timestamp to the normal db date field. You can read the db using the UNIX_TIMESTAMP()-function, which returns the timestamp from the date(time) field. So you don't need to convert the dates in PHP, but let SQL do that job. ---- Manual Page -- http://www.php.net/manual/en/function.strtotime.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+37893 Delete -- http://master.php.net/manage/user-notes.php?action=delete+37893&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+37893&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#61217) next »