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 ---------------------------(end of broadcast)--------------------------- TIP 1: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message can get through to the mailing list cleanly