Re: timestamp to readabe date and time ?

From: Date: Sun, 11 Apr 2004 02:55:47 +0000
Subject: Re: timestamp to readabe date and time ?
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-183108@lists.php.net to get a copy of this message
I have cracked it Andy, by using substr to take apart the 14 digit timestamp 10 04 2004 - 21:23:50 is now showing, and each record is different Thanks anyway, stick around for more questions here is one <td><?php $link = '<a href="' ; $link = $link . $row[2] . '">' ; $link = $link . '</a>' ; echo $link ; ?></td> is not working, I want to output $row[2] as a hyperlink as it is the refering URL, but the above is just showing blank in the output, with no link and no text in the output table -- www.phpexpert.org/truefaith.htm "True Faith is not just when you believe in God and yourself, it is when others begin to believe in you as well" - Damian John Paul Brown 2004 "Andy Ladouceur" <ladouceur@shaw.ca> wrote in message news:20040411021931.64639.qmail@pb1.pair.com... > And these are UNIX timestamps? Odd. I can't see date giving the wrong > output, could you post the timestamp you're using? > > Thanks > > Andy > > Damian Brown wrote: > > > I have tried that, but it gives a date in the future > > and all records have the same time > > the code is > > > > <td><?php echo date ("l dS of F Y h:i:s A", $row[5]) ; ?></td> > > > > and it gives an output of > > > > Monday 18th of January 2038 10:14:07 PM > > > > I need it to proces the timestamp in the database table so that it shows the > > different times > > Thanks in advance for a solution > > > > > >>The second parameter of PHP's date() function takes a timestamp as an > >>argument, this may be what you're looking for? > >> > >>Andy > >> > >>Damian Brown wrote: > >> > >>>I need to output a date and time that shows more clearly than just > >>>outputting the timestamp > >>> > >>>what is the correct way to go about it ? > >>>I have looked at getdate(), but I haven't fathomed it out yet ! > >>> > >>>-- > >>>www.phpexpert.org/truefaith.htm > >>>"True Faith is not just when you believe in God and yourself, it is when > >>>others begin to believe in you as well" - Damian John Paul Brown 2004

« previous php.general (#183108) next »