Re: timestamp to english
| From: | James Holden | Date: | Mon, 10 Mar 2003 10:02:37 +0000 |
| Subject: | Re: timestamp to english | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-138940@lists.php.net to get a copy of this message | ||
In mysql use
DATE_FORMAT(FROM_UNIXTIME(time),"%H ... etc")
In PHP use
echo date("", time());
Read the manuals at mysql.com and php.net.
jim
Lord Loh. wrote:
How do I convert the unix time stamp (the one I get by the time()) to a readable English language time.... I am getting data from mySQL by the "now()" function.... Please Help Thank You. Lord Loh.