Datetime formatting

From: PG Doc comments form <noreply(at)postgresql(dot)org>
To: pgsql-docs(at)lists(dot)postgresql(dot)org
Cc: robert(dot)kruus(at)gov(dot)sk(dot)ca
Subject: Datetime formatting
Date: 2022-01-27 15:43:00
Message-ID: 164329818006.714.3944569873739768861@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/14/datatype-datetime.html
Description:

The latest ISO 8601-1:2019 standard requires the "T" character as the
separator in text representations of datetimes. RFC 3339 is more flexible
and allows the space between the date and time. So technically,
SELECT CAST('2021-02-13 06:00:00-06'::timestamptz AS TEXT); ------>
2021-02-13 06:00:00-06
is no longer considered valid under the latest edition, it would have to be
2021-02-13T06:00:00-06
I don't have access to the actual standard, but
https://ijmacd.github.io/rfc3339-iso8601/ seems to summarize it quite well,
and from what I could find publicly available.

Might want to make a note that the current behavior does not match the
latest standard, but does match previous editions and/or RFC 3339.
Or update the actual database behavior to match the new standard so no
documentation changes are required.

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message David G. Johnston 2022-01-27 16:26:21 Re: Datetime formatting
Previous Message Tom Lane 2022-01-27 14:52:17 Re: No access to TOAST tables shown in EXPLAIN ( ANALYZE, BUFFERS )