Re: timestamp check - Mailing list pgsql-general

From David G. Johnston
Subject Re: timestamp check
Date
Msg-id CAKFQuwaTMxaVKjc7Jg7HW=xGSPKen9Sb34cmPiTLrLEkGkG1=Q@mail.gmail.com
Whole thread Raw
In response to timestamp check  (Ramesh T <rameshparnanditech@gmail.com>)
Responses Re: timestamp check  (Ramesh T <rameshparnanditech@gmail.com>)
List pgsql-general
On Fri, Jul 10, 2015 at 8:54 AM, Ramesh T <rameshparnanditech@gmail.com> wrote:

select current_timestamp-to_timestamp(to_char(current_date,'YYYY-MM-DD HH24'||':'||'MI'||':'||'SS')||' '||(SELECT utc_offset  FROM pg_catalog.pg_timezone_names  
WHERE name='US/Eastern'),'YYYY-MM-DD HH24'||':'||'MI'||':'||'SS')::timestamptz;

it's not displaying timezone..any help..?


​You haven't told us how you are executing the above query.

It also seems like an awfully convoluted answer to whatever query you are asking.

David J.
 

pgsql-general by date:

Previous
From: Ramesh T
Date:
Subject: xmltable in postgres like in oracle..?
Next
From: Adrian Klaver
Date:
Subject: Re: timestamp check