Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 1AE57475FD5 for ; Thu, 16 Jan 2003 09:57:25 -0500 (EST) Received: from wolff.to (wolff.to [66.93.249.74]) by postgresql.org (Postfix) with SMTP id 5B38D475CEE for ; Thu, 16 Jan 2003 09:57:24 -0500 (EST) Received: (qmail 24580 invoked by uid 500); 16 Jan 2003 15:09:44 -0000 Date: Thu, 16 Jan 2003 09:09:44 -0600 From: Bruno Wolff III To: d ravipati Cc: pgsql-admin@postgresql.org Subject: Re: Database server time zone Message-ID: <20030116150944.GB24326@wolff.to> Mail-Followup-To: d ravipati , pgsql-admin@postgresql.org References: <20030116105824.9721.qmail@webmail28.rediffmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030116105824.9721.qmail@webmail28.rediffmail.com> User-Agent: Mutt/1.3.25i X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/170 X-Sequence-Number: 7012 On Thu, Jan 16, 2003 at 10:58:24 -0000, d ravipati wrote: > Hi, > Is there any command to find database server local time zone > alone. > > SHOW TIME ZONE just displays database servers local time zone. > But I need to hold output of SHOW TIME ZONE in a variable, to > convert the input given in GMT to database server time zone. > Is there any other way to get database server time zone? > Thanks > Devi If the input timestamp includes a timezone specification indicating GMT, you shouldn't have to do anything. If the timestamp is a string without timezone information, you should be able to manipulate the string to indicate that it is GMT.