Re: roundoff problem in time datatype - Mailing list pgsql-hackers

From Jochem van Dieten
Subject Re: roundoff problem in time datatype
Date
Msg-id f96a9b8305092608166df19fa@mail.gmail.com
Whole thread Raw
In response to Re: roundoff problem in time datatype  (Dennis Bjorklund <db@zigo.dhs.org>)
Responses Re: roundoff problem in time datatype
List pgsql-hackers
On 9/26/05, Dennis Bjorklund wrote:
> On Sun, 25 Sep 2005, Tom Lane wrote:
>>
>> Alternatively: why are we forbidding the value 24:00:00 anyway? Is
>> there a reason not to allow the hours field to exceed 23?
>
> One reason is because it's what the standard demand.

Could you cite that? The only thing I can find in the SQL standard is
that the hour field in an INTERVAL can not exceed 23, not datetimes.


> Another is that it
> isn't a proper time, just like feb 31 isn't a proper date.

IIRC ISO 8601 (to whcih the SQL standard points) says
2005-10-01T24:00:00 is valid (and happens to be the same as
2005-10-02T00:00:00). It does seem a bit inconsistent with the spec of
an interval though.

Jochem

pgsql-hackers by date:

Previous
From: "Dave Page"
Date:
Subject: Re: Server process exited with unexpected status 128.
Next
From: Michal Jeczalik
Date:
Subject: Re: "expected authentication request from server, but