public inbox for [email protected]  
help / color / mirror / Atom feed
From: Adrian Klaver <[email protected]>
To: [email protected]
To: [email protected]
Subject: Re: RFC 9557 / IXDTF
Date: Sun, 16 Nov 2025 13:12:23 -0800
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>

On 11/16/25 11:43, [email protected] wrote:
> Hello,
> 
> does postgres consider some sort of implementation of rfc9557 IXDTF?
> This is new time internet time format which extends timestamps with 
> timezone info together with the offset
> - https://datatracker.ietf.org/doc/html/rfc9557
> - https://en.wikipedia.org/wiki/RFC_9557#Usage
> 
> If not, is there some suggestion on how to best store information like 
> this?

select '1996-12-19T16:39:57-08:00[America/Los_Angeles]'::timestamp;
ERROR:  invalid input syntax for type timestamp: 
"1996-12-19T16:39:57-08:00[America/Los_Angeles]"

select '1996-12-19T16:39:57-08:00[America/Los_Angeles]'::timestamptz;
ERROR:  invalid input syntax for type timestamp with time zone: 
"1996-12-19T16:39:57-08:00[America/Los_Angeles]"

select '1996-12-19T16:39:57-08:00[America/Los_Angeles]'::varchar;
                     varchar
------------------------------------------------
  1996-12-19T16:39:57-08:00[America/Los_Angeles]


Your only option at this point would be to store as a string. That means 
though you lose out on using any of the Postgres datetime operators or 
functions, unless you do some regex to pull out the timezone portion and 
then use that with the datetime string to create a timestamp or 
timestamptz. I could see that being wrapped into a function.

> 
> Thanks,
> Miroslav
> 
> 


-- 
Adrian Klaver
[email protected]






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 using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: RFC 9557 / IXDTF
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox