note 28845 deleted from function.time by aidan
| From: | aidan@php.net | Date: | Sat, 08 Oct 2005 01:07:27 +0000 |
| Subject: | note 28845 deleted from function.time by aidan | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-96641@lists.php.net to get a copy of this message | ||
Note Submitter: jroberts at forumone dot com
----
Looks to me like most of the example scripts on this page could better be accomplished by built-in
PHP functions
strtotime() (turns a string such as a MySQL datestamp into a UNIX timestamp)
date() accepts a UNIX datestamp (optional) and lets you provide a formatting string to meet almost
any need
additionally, the MySQL command DATE_FORMAT() would let you convert MySQL datestamps to pretty much
any format as you pull them from the DB.