Re: timestamp with time zone a la sql99 - Mailing list pgsql-hackers

From Josh Berkus
Subject Re: timestamp with time zone a la sql99
Date
Msg-id 200410251320.01311.josh@agliodbs.com
Whole thread Raw
In response to Re: timestamp with time zone a la sql99  (Dennis Bjorklund <db@zigo.dhs.org>)
Responses Re: timestamp with time zone a la sql99
Re: timestamp with time zone a la sql99
List pgsql-hackers
Dennis,

> An implementation like the one Tom (and I) want would start with
>
> 2004-10-09 10:00 PDT
>
> and then after the addition one would get
>
> 2004-11-23 10:00:00 PST

Sounds like we're on the same page then.

> The standard restrict the hour field to the interval 0-23, so there can
> never be any compare between for example '1 day 1 hour' and '25 hours'.
> This means that one can not add two intervals together to get a bigger
> one but that it would still work to do timestamp+interval+interval.

Hour field of the timestamp, or hour field of interval?  There a world of 
difference.

As long as we're willing to live with the understanding that +1day 1 hour may 
produce a slightly different result than + 25 hours, I don't see the problem.  
Currently I can add +900 hours if I like, postgreSQL will support it.

-- 
--Josh

Josh Berkus
Aglio Database Solutions
San Francisco


pgsql-hackers by date:

Previous
From: Dennis Bjorklund
Date:
Subject: Re: timestamp with time zone a la sql99
Next
From: Dennis Bjorklund
Date:
Subject: Re: timestamp with time zone a la sql99