[Zope3-dev] Can we remove ZopeLegacy for now?

Hannu Krosing hannu@krosing.net
12 Mar 2002 03:25:05 +0500


On Tue, 2002-03-12 at 05:49, Guido van Rossum wrote:
>
> Please have a look at the prototype; there's a Wiki:
> 
>     http://www.zope.org/Members/fdrake/DateTimeWiki/FrontPage
> 
> and a prototype implementation in a corner of the nondist Python CVS
> tree:
> 
>     http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/python/python/nondist/sandbox/datetime/
> 
> I expect that something like this will be a standard library module in
> Python 2.3.  Now is the time to give feedback.  Note that the latest
> design ideas are in the "NaiveTime" part of the Wiki -- this means
> dropping the timezone from the datetime representation, because it
> makes decent time arithmetic (e.g. adding whole N days to a datetime)
> impossible.  But it's easy to add the timezone info in a subclass --
> if you promise not to do time arithmetic or not to care how it
> interoperates with DST transitions.  (Read the NaiveTime page before
> commenting on this statement.)


DateTime arithmetic is difficult (where are all these 63 leap seconds
supposed to go? what is 28.01 + 1 month? etc.) so I quess the best bet
would be porting something from an impementation that has already gone
through these agonies ;)

I've been thinking about porting date/time/timestamp/interval types from
PostgreSQL. Would there be any interest in that ?

------------------
Hannu