Re: timestamp check - Mailing list pgsql-general

From Adrian Klaver
Subject Re: timestamp check
Date
Msg-id 55A15583.3070500@aklaver.com
Whole thread Raw
In response to timestamp check  (Ramesh T <rameshparnanditech@gmail.com>)
Responses Re: timestamp check
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..?
>

Forget my previous post, Rays post made me realize the error of my ways,
namely thinking current_timestamp-to_timestamp was a function.

--
Adrian Klaver
adrian.klaver@aklaver.com


pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: xmltable in postgres like in oracle..?
Next
From: Dane Foster
Date:
Subject: A table of magic constants