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: Sun, 03 Dec 2017 21:55:53 -0500
Message-ID: <21940.1512356153@sss.pgh.pa.us> (raw)
In-Reply-To: <CAOX4-H7gnUNV50d7N9E0V6q=LVuu4ewiuzmnBXmggkBs8DgeSA@mail.gmail.com>
References: <CAOX4-H7gnUNV50d7N9E0V6q=LVuu4ewiuzmnBXmggkBs8DgeSA@mail.gmail.com>

Bharanee Rathna <deepfryed@gmail.com> writes:
> the documentation around how numeric offsets are parsed from strings is a
> bit confusing, are they supposed to be treated as ISO8601 or POSIX ?

Our documentation about this says clearly that Postgres considers offsets
to be ISO (positive-east-of-Greenwich) everywhere except in POSIX-style
time zone names.

> The Table 8-12. Time Zone Input section at
> https://www.postgresql.org/docs/9.3/static/datatype-datetime.html seems to
> imply that numeric offsets would be treated as ISO8601.

How do you read an entry such as

	-8:00	|	ISO-8601 offset for PST

as being in any way vague about which convention the "-8" is read in?

			regards, tom lane




view thread (6+ messages)  latest in thread

Message-ID: <21940.1512356153@sss.pgh.pa.us>
Permalink:  ../21940.1512356153@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/21940.1512356153@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: <21940.1512356153@sss.pgh.pa.us>
  References: <CAOX4-H7gnUNV50d7N9E0V6q=LVuu4ewiuzmnBXmggkBs8DgeSA@mail.gmail.com> <21940.1512356153@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