pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bharanee Rathna <deepfryed@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: ISO8601 vs POSIX offset clarification
Date: Mon, 04 Dec 2017 09:58:28 -0500
Message-ID: <17467.1512399508@sss.pgh.pa.us> (raw)
In-Reply-To: <CAOX4-H5tV6YQr-hGarsjcJ5pBwXY=usN-0nFo50oNzPiKaOOfw@mail.gmail.com>
References: <CAOX4-H7gnUNV50d7N9E0V6q=LVuu4ewiuzmnBXmggkBs8DgeSA@mail.gmail.com>
	<21940.1512356153@sss.pgh.pa.us>
	<CAOX4-H7xoBvAgXbj=bnwGT6QF407fNKsnmr7fWs8KnLqv7=NtA@mail.gmail.com>
	<CAOX4-H5tV6YQr-hGarsjcJ5pBwXY=usN-0nFo50oNzPiKaOOfw@mail.gmail.com>

Bharanee Rathna <deepfryed@gmail.com> writes:
> To be more specific, I expected the output of both these queries to be the
> same.
> # select '2017-12-01 11:00:00 +11:00'::timestamp with time zone at time
> zone '+11:00';
> # select '2017-12-01 11:00:00 +11:00'::timestamp with time zone at time
> zone 'Australia/Melbourne';

The +11 in your timestamp input value is per ISO convention, but the
argument of AT TIME ZONE is a zone name, so it follows the POSIX
convention if it's numeric.

			regards, tom lane




view thread (6+ messages)

Message-ID: <17467.1512399508@sss.pgh.pa.us>
Permalink:  ../17467.1512399508@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/17467.1512399508@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, deepfryed@gmail.com
  Subject: Re: ISO8601 vs POSIX offset clarification
  In-Reply-To: <17467.1512399508@sss.pgh.pa.us>
  References: <CAOX4-H7gnUNV50d7N9E0V6q=LVuu4ewiuzmnBXmggkBs8DgeSA@mail.gmail.com> <21940.1512356153@sss.pgh.pa.us> <CAOX4-H7xoBvAgXbj=bnwGT6QF407fNKsnmr7fWs8KnLqv7=NtA@mail.gmail.com> <CAOX4-H5tV6YQr-hGarsjcJ5pBwXY=usN-0nFo50oNzPiKaOOfw@mail.gmail.com> <17467.1512399508@sss.pgh.pa.us>

* 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