Re: timestamp to readabe date and time ?
| From: | Andy Ladouceur | Date: | Sun, 11 Apr 2004 02:20:03 +0000 |
| Subject: | Re: timestamp to readabe date and time ? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-183106@lists.php.net to get a copy of this message | ||
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 solutionThe 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