Re: timestamp to readabe date and time ?

From: Date: Sun, 11 Apr 2004 07:54:43 +0000
Subject: Re: timestamp to readabe date and time ?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-183116@lists.php.net to get a copy of this message
On 11-Apr-2004 Ryan A wrote: > <snipage> > If you are using timestamp(14), here is how i do it: (after the > select) > > if(($row = mysql_fetch_row($result))>=1) > { > $d_year = substr($row[4],0,4); > $d_month = substr($row[4],4,2); > $d_day = substr($row[4],6,2); > $d_hours = substr($row[4],8,2); > $d_mins = substr($row[4],10,2); > $d_secs = substr($row[4],12,2); > } Ugh! list($y, $m, $d, $h, $i, $s) = split('[-:/. ]', $row[x]); -- Don Read dread@ispwest.net -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it.

« previous php.general (#183116) next »