Re: timestamp to english

From: Date: Mon, 10 Mar 2003 17:07:53 +0000
Subject: Re: timestamp to english
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-138978@lists.php.net to get a copy of this message
jim there is no need for the second parameter in Date() for PHP, unless u want something other then current time. Date ('m-d-y') is the same as Date ('m-d-y', Time()) Joel "James Holden" <php_lists@globalvision.com> wrote in message news:3E6C62BD.8000709@globalvision.com... > 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. > > > > > > > > > > > > >

« previous php.general (#138978) next »