pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: 甄明洋 <zhenmingyang@yeah.net>
Cc: David G. Johnston <david.g.johnston@gmail.com>
Cc: Aleksander Alekseev <a.alekseev@postgrespro.ru>
Cc: pgsql-bugs <pgsql-bugs@postgresql.org>
Subject: Re: Re:Re:  Re: [BUGS] Return value error of‘to_timestamp’
Date: Wed, 17 Aug 2016 09:49:38 -0400
Message-ID: <7406.1471441778@sss.pgh.pa.us> (raw)
In-Reply-To: <6144af7f.1d1e.156982e1e21.Coremail.zhenmingyang@yeah.net>
References: <379c479a.f0c.15653e44bba.Coremail.zhenmingyang@yeah.net>
	<CAKFQuwYMf7Xb9yqwTMcJ67-+r7V88NkR=wKpskFM6Hykm4ZhZQ@mail.gmail.com>
	<20160804180309.28bd486a@fujitsu>
	<CAKFQuwa1eWdO-7Y-uqRTGrdwj0H=N6iz5dLohLy7BCeLG3=qrw@mail.gmail.com>
	<6144af7f.1d1e.156982e1e21.Coremail.zhenmingyang@yeah.net>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

=?UTF-8?B?55SE5piO5rSL?= <zhenmingyang@yeah.net> writes:
>    this looks like, the sign  plus and minus are inverted, i dont understand why?

Time zone names follow the POSIX convention (plus is west of Greenwich).
Timestamp I/O follows the ISO convention (plus is east of Greenwich).
Aren't standards fun?

See para starting "One should be wary ..." here:
https://www.postgresql.org/docs/9.5/static/datatype-datetime.html#DATATYPE-TIMEZONES

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (10+ messages)  latest in thread

Message-ID: <7406.1471441778@sss.pgh.pa.us>
Permalink:  ../7406.1471441778@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/7406.1471441778@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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, zhenmingyang@yeah.net, david.g.johnston@gmail.com, a.alekseev@postgrespro.ru
  Subject: Re: [BUGS] Return value error of‘to_timestamp’
  In-Reply-To: <7406.1471441778@sss.pgh.pa.us>
  References: <379c479a.f0c.15653e44bba.Coremail.zhenmingyang@yeah.net> <CAKFQuwYMf7Xb9yqwTMcJ67-+r7V88NkR=wKpskFM6Hykm4ZhZQ@mail.gmail.com> <20160804180309.28bd486a@fujitsu> <CAKFQuwa1eWdO-7Y-uqRTGrdwj0H=N6iz5dLohLy7BCeLG3=qrw@mail.gmail.com> <6144af7f.1d1e.156982e1e21.Coremail.zhenmingyang@yeah.net> <7406.1471441778@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