X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id 9626B3107D9 for ; Mon, 30 Jun 2003 20:12:37 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 64071-07 for ; Mon, 30 Jun 2003 17:12:27 -0300 (ADT) Received: from seapdc01.PNTS (ip63.c216.blk1.bel.nwlink.com [209.20.216.63]) by svr1.postgresql.org (Postfix) with ESMTP id D53BC310A22 for ; Mon, 30 Jun 2003 17:12:26 -0300 (ADT) Received: from busbydev (BUSBY-DEV [10.0.0.17]) by seapdc01.PNTS with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id N2LV1170; Mon, 30 Jun 2003 13:27:26 -0700 Message-ID: <028801c33f43$184e28c0$1100000a@busbydev> Reply-To: "David Busby" From: "David Busby" To: "Michael Hanna" , References: Subject: Re: Best way to convert PG's TIMESTAMPTZ to PHP DATE? Date: Mon, 30 Jun 2003 13:06:16 -0700 Organization: Pacific Northwest Ticket Service MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Archive-Number: 200306/41 X-Sequence-Number: 2105 Both of these work OK for me date('r',strtotime($record->date_field)); or select to_char(date_field,'FORMAT SPEC') as date_field, column_two, column_three from x where y=z /B ----- Original Message ----- From: "Michael Hanna" To: Sent: Monday, June 30, 2003 12:54 Subject: [PHP] Best way to convert PG's TIMESTAMPTZ to PHP DATE? > Anybody have any advice on this.. > Michael > > > ---------------------------(end of broadcast)--------------------------- > TIP 8: explain analyze is your friend >