Re: timestamp check

From: Ramesh T <rameshparnanditech(at)gmail(dot)com>
To: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: timestamp check
Date: 2015-07-11 16:11:49
Message-ID: CAK8Zd=srACGafNCzMUkjmPtdH4cX0cA=weCEeEvpVUFadYQKtA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

okay,i'm executing a query from pgadmin3.

i want display time with timezone.But above query displaying date and time
not timezone...

On Sat, Jul 11, 2015 at 9:34 PM, David G. Johnston <
david(dot)g(dot)johnston(at)gmail(dot)com> wrote:

> On Fri, Jul 10, 2015 at 8:54 AM, Ramesh T <rameshparnanditech(at)gmail(dot)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.
> ​
>
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2015-07-11 17:30:22 Re: timestamp check
Previous Message David G. Johnston 2015-07-11 16:04:47 Re: timestamp check