Re: ISO 8601 'Time Intervals' of the 'format with time-unit deignators'

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Ron Mayer <ron(at)intervideo(dot)com>, andrew(at)dunslane(dot)net, pgsql-patches(at)postgresql(dot)org
Subject: Re: ISO 8601 'Time Intervals' of the 'format with time-unit deignators'
Date: 2003-09-08 22:45:03
Message-ID: 7015.1063061103@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-advocacy pgsql-general pgsql-hackers pgsql-patches

Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> Tom Lane writes:
>> Yes, but by the same token "iso8601" isn't specific enough either.
>> Several of the other input formats we support have at least as good a
>> claim on that name.

> The only input formats we support are along the lines of

> @ 1 year 2 mons 3 days 4 hours 5 mins 6 secs
> @ 1 year 2 mons 3 days 04:05:06

Sorry, I was thinking of timestamp formats not intervals.
You're right that we don't have anything else particularly ISO-standard
for intervals, but my understanding is that formats like '2003-09-08
18:43:31.046283-04' are ISO8601 compatible for timestamps. (Possibly
you need to put a T in there for strict compatibility, not sure.)

regards, tom lane

In response to

Responses

Browse pgsql-advocacy by date

  From Date Subject
Next Message Bruce Momjian 2003-09-08 22:52:29 Re: About GPL and proprietary software
Previous Message Peter Eisentraut 2003-09-08 22:39:44 Re: ISO 8601 'Time Intervals' of the 'format with time-unit

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2003-09-08 22:52:29 Re: About GPL and proprietary software
Previous Message Peter Eisentraut 2003-09-08 22:39:44 Re: ISO 8601 'Time Intervals' of the 'format with time-unit

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2003-09-08 22:48:09 Re: constraint modification on todo list
Previous Message Bruce Momjian 2003-09-08 22:41:00 Re: undefine currval()

Browse pgsql-patches by date

  From Date Subject
Next Message Ron Mayer 2003-09-08 23:05:38 Re: [PATCHES] ISO 8601 "Time Intervals" of the "format with time-unit designators"
Previous Message Peter Eisentraut 2003-09-08 22:39:44 Re: ISO 8601 'Time Intervals' of the 'format with time-unit