From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | "Ron Mayer" <ron(at)intervideo(dot)com> |
Cc: | pgsql-patches(at)postgresql(dot)org |
Subject: | Re: ISO 8601 "Time Intervals" of the "format with time-unit deignators" |
Date: | 2003-09-08 19:59:20 |
Message-ID: | 28832.1063051160@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-advocacy pgsql-general pgsql-hackers pgsql-patches |
"Ron Mayer" <ron(at)intervideo(dot)com> writes:
> Tom wrote:
>> Er, don't we support that already?
> Postgresql supports a rather bizzare shorthand that has a similar
> syntax, but AFAICT, doesn't match ISO 8601 in any way that makes
> it practical.
Well, it's *supposed* to match ISO, AFAICT (the comments in the code
talk about "ISO dates"). Unless ISO has put out multiple specs that
cover this?
> Perhaps one could argue that the postgres shorthand should
> follow the ISO conventions, but I'd not want to break backward
> compatability, incase someone out there is using '1H30M' and
> expecting minutes instead of months.
I doubt anyone is using it, because it's completely undocumented.
If we're going to support the real ISO spec, I'd suggest ripping
out any not-quite-there variant. (Especially so noting that your
code seems a lot cleaner than the ptype stuff.)
The datetime code is kind of a mess right now, because Thomas Lockhart
walked away from the project while only partway through some significant
additions. He left some incomplete features and quite a number of bugs
in new-and-untested code. We've been gradually cleaning up the problems,
but if if you find something that doesn't seem to make sense, it's
likely a bug rather than anything we want to preserve. In particular,
given the knowledge that it doesn't meet the ISO spec, I'd judge that
the existing code for the ISO shorthand was a work-in-progress.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2003-09-08 20:17:19 | Re: ISO 8601 'Time Intervals' of the 'format with time-unit deignators' |
Previous Message | Jonathan Bartlett | 2003-09-08 19:57:43 | Re: About GPL and proprietary software |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2003-09-08 20:17:19 | Re: ISO 8601 'Time Intervals' of the 'format with time-unit deignators' |
Previous Message | Jonathan Bartlett | 2003-09-08 19:57:43 | Re: About GPL and proprietary software |
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2003-09-08 20:10:51 | Re: pgsql vc++|win32 |
Previous Message | Ron Mayer | 2003-09-08 19:16:50 | Re: ISO 8601 'Time Intervals' of the 'format with time-unit deignators' |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2003-09-08 20:17:19 | Re: ISO 8601 'Time Intervals' of the 'format with time-unit deignators' |
Previous Message | Ron Mayer | 2003-09-08 19:16:50 | Re: ISO 8601 'Time Intervals' of the 'format with time-unit deignators' |