pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: David Gauthier <davegauthierpg@gmail.com>
To: pgsql-general@postgresql.org
Subject: Re: timestamp (military) at time zone without the suffix
Date: Wed, 11 Jul 2018 12:52:44 -0700
Message-ID: <b1accfd6-9e9d-b3ff-bddf-5560fb19a679@aklaver.com> (raw)
In-Reply-To: <CAMBRECB=k1CkGjvY-nn=WMtcVFM8f_88D6MK+Bt=jCbHVOpbWA@mail.gmail.com>
References: <CAMBRECB=k1CkGjvY-nn=WMtcVFM8f_88D6MK+Bt=jCbHVOpbWA@mail.gmail.com>

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.klaver@aklaver.com




view thread (13+ messages)  latest in thread

Message-ID: <b1accfd6-9e9d-b3ff-bddf-5560fb19a679@aklaver.com>
Permalink:  ../b1accfd6-9e9d-b3ff-bddf-5560fb19a679@aklaver.com/
Also on:    postgresql.org/message-id/b1accfd6-9e9d-b3ff-bddf-5560fb19a679@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, davegauthierpg@gmail.com
  Subject: Re: timestamp (military) at time zone without the suffix
  In-Reply-To: <b1accfd6-9e9d-b3ff-bddf-5560fb19a679@aklaver.com>
  References: <CAMBRECB=k1CkGjvY-nn=WMtcVFM8f_88D6MK+Bt=jCbHVOpbWA@mail.gmail.com> <b1accfd6-9e9d-b3ff-bddf-5560fb19a679@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox