Re: timestamp check - Mailing list pgsql-general

From Adrian Klaver
Subject Re: timestamp check
Date
Msg-id 55A152AE.8040407@aklaver.com
Whole thread Raw
In response to timestamp check  (Ramesh T <rameshparnanditech@gmail.com>)
List pgsql-general
On 07/10/2015 05:54 AM, Ramesh T 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..?
>

That would seem to depend on what is happening in the
current_timestamp-to_timestamp function.

So what is current_timestamp-to_timestamp doing or more importantly
what is it returning before the timestamptz cast?


--
Adrian Klaver
adrian.klaver@aklaver.com


pgsql-general by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: timestamp check
Next
From: Chris Mair
Date:
Subject: Re: xmltable in postgres like in oracle..?