Re: [PHP] Problems reformatting Unix timestamp with strftime

2001-02-16 Thread Steven Hirschorn
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

Re: [PHP] Problems reformatting Unix timestamp with strftime

2001-02-15 Thread eschmid+sic
On Fri, Feb 16, 2001 at 12:04:01AM +, Steven Hirschorn wrote: 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

[PHP] Problems reformatting Unix timestamp with strftime

2001-02-15 Thread Steven Hirschorn
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

Re: [PHP] Problems reformatting Unix timestamp with strftime

2001-02-15 Thread Steven Hirschorn
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 2038.

Re: [PHP] Problems reformatting Unix timestamp with strftime

2001-02-15 Thread eschmid+sic
On Fri, Feb 16, 2001 at 12:32:47AM +, Steven Hirschorn wrote: 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)