Re: roundoff problem in time datatype
От | Jochem van Dieten |
---|---|
Тема | Re: roundoff problem in time datatype |
Дата | |
Msg-id | f96a9b8305092608166df19fa@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: roundoff problem in time datatype (Dennis Bjorklund <db@zigo.dhs.org>) |
Ответы |
Re: roundoff problem in time datatype
|
Список | 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 по дате отправления: