On Thu, 15 Feb 2001 at 17:57:43, Rog <[EMAIL PROTECTED]> writes
>He's probably gotten his timestamp from a database, in which case the
>easiest solution is usually reformat the timestamp when collecting it
>from the database rather than within PHP.
>
>(MySQL) Example :
>select UNIX_TIMESTAMP(tim
On Fri, 16 Feb 2001 at 02:03:42, [EMAIL PROTECTED] writes
>> with the same effect - 20010213173654 becomes
>> Monday, 18th January 2038. Is there a problem with the way I'm passing
>> the timestamp to the date command?
>
>Your timestamp looks bogus. On normal systems this can only be a 32 bit
>int
On Fri, 16 Feb 2001 at 01:08:58, [EMAIL PROTECTED] writes
>You haven't read the PHP Manual carefully:
>
>http://php.net/mktime
>http://php.net/date
Thanks for the speedy reply! I've tried using:
date("l, jS F Y",$lastmodified)
with the same effect - 20010213173654 becomes
Monday, 18th January 20
I've checked this in the PHP documentation and done a scan of the
archive to try to work out where I am going wrong but have failed. I
know I could fix this problem by using substrings and processing them,
but PHP has a simpler function which should work. Shouldn't it?
In my database a record
4 matches
Mail list logo