note 21386 added to function.date

From: Date: Fri, 10 May 2002 20:13:15 +0000
Subject: note 21386 added to function.date
Groups: php.notes 
Request: Send a blank email to php-notes+get-30442@lists.php.net to get a copy of this message
Looking into the mySQL manual I found that as already stated PHP and mySql have tow different time stamping numbers. PHP is UNIX timestamp: seconds in GMT since 1970.01.01 00:00:00, there is a function in mySql that supports converting SQL timestamp to unix. select UNIX_TIMESTAMP('1997-10-04 22:23:00'); will return a number PHP likes for its date timestamp. Hope this helps Greg -- http://www.php.net/manual/en/function.date.php http://master.php.net/manage/user-notes.php?action=edit+21386 http://master.php.net/manage/user-notes.php?action=delete+21386 http://master.php.net/manage/user-notes.php?action=reject+21386

« previous php.notes (#30442) next »