timestamp (military) at time zone without the suffix - Mailing list pgsql-general

From David Gauthier
Subject timestamp (military) at time zone without the suffix
Date
Msg-id CAMBRECB=k1CkGjvY-nn=WMtcVFM8f_88D6MK+Bt=jCbHVOpbWA@mail.gmail.com
Whole thread Raw
Responses Re: timestamp (military) at time zone without the suffix  ("David G. Johnston" <david.g.johnston@gmail.com>)
Re: timestamp (military) at time zone without the suffix  (Adrian Klaver <adrian.klaver@aklaver.com>)
Re: timestamp (military) at time zone without the suffix  (Adrian Klaver <adrian.klaver@aklaver.com>)
Re: timestamp (military) at time zone without the suffix  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: timestamp (military) at time zone without the suffix  (Adrian Klaver <adrian.klaver@aklaver.com>)
List pgsql-general
Hi:

I would like to get the utc timestamp, 24-hr clock (military time), without the time zone suffix.  

Below commands were run nearly at the same time...

sqfdev=> select now()::timestamp(0)  ;
         now
---------------------
 2018-07-11 15:27:12
(1 row)

...then immediately...

sqfdev=> select now()::timestamp(0) at time zone 'utc' ;
        timezone
------------------------
 2018-07-11 11:27:12-04
(1 row)


15:27:12 makes sense (it's a bout 3:30 in the afternoon EST).
11:27:12 doesn't make sense.  UTC is 5 hours ahead.  I would have expected either 20:27 (if it stuck to military time, which I want), or 08:27 (P.M., non-military time)

And I want to get rid of the -04 suffix.  

Is there a way to do this ?

Thanks !

pgsql-general by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: How to tell which event was fired in Trigger function
Next
From: Hellmuth Vargas
Date:
Subject: Re: Optimizing execution of expensive subqueries