Received: from localhost (unknown [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 51E6F9F9AA5 for ; Wed, 5 Sep 2007 05:12:47 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 65232-06 for ; Wed, 5 Sep 2007 05:12:44 -0300 (ADT) X-Greylist: delayed 00:14:22.565182 by SQLgrey-1.7.5 Received: from smadev.internal.net (host3.dynacom.ondsl.gr [62.103.35.211]) by postgresql.org (Postfix) with ESMTP id 020359F99D9 for ; Wed, 5 Sep 2007 05:12:43 -0300 (ADT) Received: from smadev.internal.net (localhost [127.0.0.1]) by smadev.internal.net (8.13.6/8.13.6) with ESMTP id l857wIaY087160 for ; Wed, 5 Sep 2007 10:58:18 +0300 (EEST) (envelope-from achill@matrix.gatewaynet.com) Received: from localhost (localhost [[UNIX: localhost]]) by smadev.internal.net (8.13.6/8.13.6/Submit) id l857wIEL087159 for pgsql-sql@postgresql.org; Wed, 5 Sep 2007 10:58:18 +0300 (EEST) (envelope-from achill@matrix.gatewaynet.com) From: Achilleas Mantzios Organization: Dynacom Tankers Mgmt To: pgsql-sql@postgresql.org Subject: Re: ISO time zone format Date: Wed, 5 Sep 2007 10:58:17 +0300 User-Agent: KMail/1.9.3 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200709051058.18158.achill@matrix.gatewaynet.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200709/46 X-Sequence-Number: 29259 =CE=A3=CF=84=CE=B9=CF=82 =CE=A4=CE=B5=CF=84=CE=AC=CF=81=CF=84=CE=B7 05 =CE= =A3=CE=B5=CF=80=CF=84=CE=AD=CE=BC=CE=B2=CF=81=CE=B9=CE=BF=CF=82 2007 10:30,= =CE=BF/=CE=B7 Sabin Coanda =CE=AD=CE=B3=CF=81=CE=B1=CF=88=CE=B5: > Hi there, > > I'd like to format a time stamp with time zone as ISO pattern (e.g. > 1999-01-08 04:05:06 -8:00) > > I found the patterns for all the timestamp parts, from "Data Type > Formatting Functions" Postgresql documentation, excepting the numeric ISO > time zone. > > Please suggest the appropiate pattern for that. Have you tried the default PgSQL behaviour, without setting DateStyle, or=20 doing any explicit formating? Maybe its exactly what you want. What does=20 select now(); from within psql, output in your system? > > TIA, > Sabin > > > > ---------------------------(end of broadcast)--------------------------- > TIP 9: In versions below 8.0, the planner will ignore your desire to > choose an index scan if your joining column's datatypes do not > match =2D-=20 Achilleas Mantzios