[Zope3-dev] Dates and times

Tim Peters tim@zope.com
Fri, 15 Nov 2002 13:05:17 -0500


[Marius Gedminas]
> ...
> BTW, regarding INTERVALs: PostgreSQL allows one to specify a number of
> months in an interval, and expressions like date 'YYYY-MM-DD' + interval
> '1 month' return the same DD on the next month.

What's the value of

    2000-01-31 + 1 month

?  The last day of February?  If so, is

    (2000-01-31 + 1 month) - 1 month

then 2000-01-29?