note 24211 added to function.strtotime
| From: | egreb at at trivini dot com | Date: | Fri, 09 Aug 2002 14:38:11 +0000 |
| Subject: | note 24211 added to function.strtotime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-34609@lists.php.net to get a copy of this message | ||
Some have contributed ways of getting the Unix time from databases. In MySQL, there is a field type
called datetime. It's basicly an string looking like this: 0000-00-00 00:00:00
One way of doing this in MySQL is this:
SELECT UNIX_TIMESTAMP(timefield) FROM aNiceTable;
I don't know if this works in PostgreSQL.
--
http://www.php.net/manual/en/function.strtotime.php
http://master.php.net/manage/user-notes.php?action=edit+24211
http://master.php.net/manage/user-notes.php?action=delete+24211
http://master.php.net/manage/user-notes.php?action=reject+24211