Re: Problems reformatting Unix timestamp with strftime

From: Date: Fri, 16 Feb 2001 01:03:42 +0000
Subject: Re: Problems reformatting Unix timestamp with strftime
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-40012@lists.php.net to get a copy of this message
On Fri, Feb 16, 2001 at 12:32:47AM +0000, Steven Hirschorn wrote: > On Fri, 16 Feb 2001 at 01:08:58, eschmid+sic@s.netic.de 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 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 integer and there will be an overflow at that time. -Egon -- http://www.linuxtag.de/ http://php.net/books.php http://www.concert-band.de/ http://www.php-buch.de/

« previous php.general (#40012) next »