Re: ISO8601 vs POSIX offset clarification

From: Bharanee Rathna <deepfryed(at)gmail(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: ISO8601 vs POSIX offset clarification
Date: 2017-12-04 02:59:11
Message-ID: CAOX4-H7xoBvAgXbj=bnwGT6QF407fNKsnmr7fWs8KnLqv7=NtA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Sorry I didn't mean for it to come out as a complaint, just that I am
confused since the result of the SQL query was not what I expected. I
expected +11:00 to be 11 hours east of UTC which wasn't the case.

On 4 December 2017 at 13:55, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> Bharanee Rathna <deepfryed(at)gmail(dot)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
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bharanee Rathna 2017-12-04 03:03:43 Re: ISO8601 vs POSIX offset clarification
Previous Message Tom Lane 2017-12-04 02:55:53 Re: ISO8601 vs POSIX offset clarification