Re: ISO8601 vs POSIX offset clarification - Mailing list pgsql-general

From Tom Lane
Subject Re: ISO8601 vs POSIX offset clarification
Date
Msg-id 17467.1512399508@sss.pgh.pa.us
Whole thread Raw
In response to Re: ISO8601 vs POSIX offset clarification  (Bharanee Rathna <deepfryed@gmail.com>)
List pgsql-general
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


pgsql-general by date:

Previous
From: Nicola Contu
Date:
Subject: Re: Centos 6.9 and centos 7
Next
From: Tomas Vondra
Date:
Subject: Re: Centos 6.9 and centos 7