Received: from localhost (unknown [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 3A89F9F9D25 for ; Wed, 5 Sep 2007 10:09:11 -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 43491-07 for ; Wed, 5 Sep 2007 10:09:08 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from floppy.pyrenet.fr (floppy.pyrenet.fr [194.116.145.2]) by postgresql.org (Postfix) with ESMTP id 0A6389F9CD3 for ; Wed, 5 Sep 2007 10:09:09 -0300 (ADT) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id BF3CF31434; Wed, 5 Sep 2007 15:09:06 +0200 (MET DST) From: "Sabin Coanda" X-Newsgroups: pgsql.sql Subject: Re: ISO time zone format Date: Wed, 5 Sep 2007 16:09:15 +0300 Organization: Hub.Org Networking Services Lines: 21 Message-ID: References: <46DE65E2.6090904@archonet.com> X-Complaints-To: usenet@news.hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Response To: pgsql-sql@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200709/50 X-Sequence-Number: 29263 > > If your DateStyle is set to ISO that's the default format. You don't need > to use to_char() > > Or am I missing your point? > Hi Richard, I'd just like to format it independent of my DateStyle. Some timestamp parts may be formatted this way. For instance I can format ISO date with to_char( dt, 'YYYY-MM-DD'), and ISO time with to_char( dt, 'HH24:MI:SS') as well. I'd just like to find the format pattern for the ISO time zone (numeric). Regards, Sabin