Re: timestamp (military) at time zone without the suffix

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: David Gauthier <davegauthierpg(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: timestamp (military) at time zone without the suffix
Date: 2018-07-11 19:52:44
Message-ID: b1accfd6-9e9d-b3ff-bddf-5560fb19a679@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 07/11/2018 12:36 PM, David Gauthier wrote:
> select now()::timestamp(0) at time zone 'utc' ;
Or:

test=> select now();
now
-------------------------------
2018-07-11 12:51:50.498416-07
(1 row)

test=> select now()::timestamptz(0) at time zone 'utc' ;
timezone
---------------------
2018-07-11 19:51:52
(1 row)

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2018-07-11 19:54:36 Re: timestamp (military) at time zone without the suffix
Previous Message Adrian Klaver 2018-07-11 19:45:26 Re: timestamp (military) at time zone without the suffix