Re: timestamp check

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Ramesh T <rameshparnanditech(at)gmail(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: timestamp check
Date: 2015-07-11 17:30:22
Message-ID: 55A152AE.8040407@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(dot)klaver(at)aklaver(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Chris Mair 2015-07-11 17:30:25 Re: xmltable in postgres like in oracle..?
Previous Message Ramesh T 2015-07-11 16:11:49 Re: timestamp check