[Zope-dev] Re: Options replacing DateTime with datetime!?

2007-09-27 Thread Laurence Rowe
Dieter Maurer wrote: Laurence Rowe wrote at 2007-9-26 11:08 +0100: ... To enable an evolutionary approach DateTime - datetime conversions must be made round-tripable. This is currently difficult as DateTimes have a resolution of milliseconds and datetimes a resolution of microseconds. I

[Zope-dev] Re: Options replacing DateTime with datetime!?

2007-09-26 Thread Laurence Rowe
Andreas Jung wrote: snip / Just for the logs: I gave up my work on an inplace DateTime migration.. too compliated, too much cruft would have to remain for backward compatibility. Let's see how we can address the issue in a reasonable way :-) To enable an evolutionary approach DateTime -

Re: [Zope-dev] Re: Options replacing DateTime with datetime!?

2007-09-26 Thread Andreas Jung
--On 26. September 2007 11:08:23 +0100 Laurence Rowe [EMAIL PROTECTED] wrote: Andreas Jung wrote: snip / Just for the logs: I gave up my work on an inplace DateTime migration.. too compliated, too much cruft would have to remain for backward compatibility. Let's see how we can address the

Re: [Zope-dev] Re: Options replacing DateTime with datetime!?

2007-09-26 Thread Dieter Maurer
Laurence Rowe wrote at 2007-9-26 11:08 +0100: ... To enable an evolutionary approach DateTime - datetime conversions must be made round-tripable. This is currently difficult as DateTimes have a resolution of milliseconds and datetimes a resolution of microseconds. I propose: * Increase the

Re: [Zope-dev] Re: Options replacing DateTime with datetime!?

2007-09-26 Thread Wichert Akkerman
Previously Dieter Maurer wrote: Laurence Rowe wrote at 2007-9-26 11:08 +0100: ... To enable an evolutionary approach DateTime - datetime conversions must be made round-tripable. This is currently difficult as DateTimes have a resolution of milliseconds and datetimes a resolution of

Re: [Zope-dev] Re: Options replacing DateTime with datetime!?

2007-09-01 Thread Andreas Jung
--On 28. August 2007 12:04:35 +0100 Laurence Rowe [EMAIL PROTECTED] wrote: Philipp von Weitershausen wrote: snip / I believe that datetime is not even importable in TTW code and datetime objects not accessible in TTW code -- at least, they have not been until recently...

Re: [Zope-dev] Re: Options replacing DateTime with datetime!?

2007-09-01 Thread Dieter Maurer
Andreas Jung wrote at 2007-9-1 12:59 +0200: ... I came across python-dateutil some days ago http://labix.org/python-dateutil which appears really impressive to me (and useful). python-dateutil + datetime would be an equivalent replacement for DateTime. Just for the logs: I gave up my work on

Re: [Zope-dev] Re: Options replacing DateTime with datetime!?

2007-08-29 Thread Dieter Maurer
Philipp von Weitershausen wrote at 2007-8-28 21:49 +0200: On 28 Aug 2007, at 21:48 , Dieter Maurer wrote: Philipp von Weitershausen wrote at 2007-8-27 22:33 +0200: ... datetime use ... My point was just that it's doable and has been for a long time already. Yes, it is possible (for a long

[Zope-dev] Re: Options replacing DateTime with datetime!?

2007-08-28 Thread Laurence Rowe
Philipp von Weitershausen wrote: snip / I believe that datetime is not even importable in TTW code and datetime objects not accessible in TTW code -- at least, they have not been until recently... allow_module('datetime') is all you had to do. Ok, admittedly, pure-TTW developers who can't or

Re: [Zope-dev] Re: Options replacing DateTime with datetime!?

2007-08-28 Thread Dieter Maurer
Philipp von Weitershausen wrote at 2007-8-27 22:33 +0200: ... I believe that datetime is not even importable in TTW code and datetime objects not accessible in TTW code -- at least, they have not been until recently... allow_module('datetime') is all you had to do. Ok, admittedly, pure- TTW

Re: [Zope-dev] Re: Options replacing DateTime with datetime!?

2007-08-28 Thread Philipp von Weitershausen
On 28 Aug 2007, at 21:48 , Dieter Maurer wrote: Philipp von Weitershausen wrote at 2007-8-27 22:33 +0200: ... I believe that datetime is not even importable in TTW code and datetime objects not accessible in TTW code -- at least, they have not been until recently... allow_module('datetime')

[Zope-dev] Re: Options replacing DateTime with datetime!?

2007-08-27 Thread Philipp von Weitershausen
Dieter Maurer wrote: Andreas Jung wrote at 2007-8-26 20:31 +0200: ... Conversion between both is pretty much trivial. However I have no idea how this would solve the DateTime problem. So what are our DateTime problems? - an insane constructor with a parser trying to parse almost every date

[Zope-dev] Re: Options replacing DateTime with datetime!?

2007-08-27 Thread Dieter Maurer
Philipp von Weitershausen wrote at 2007-8-27 22:11 +0200: ... In my personal opinion, we should * use datetime for all the new stuff that we write, * provide a convenient way to convert DateTime objects into datetime, * create alternate APIs for all the APIs that work with DateTime objects

[Zope-dev] Re: Options replacing DateTime with datetime!?

2007-08-27 Thread Philipp von Weitershausen
On 27 Aug 2007, at 22:25 , Dieter Maurer wrote: Philipp von Weitershausen wrote at 2007-8-27 22:11 +0200: ... In my personal opinion, we should * use datetime for all the new stuff that we write, * provide a convenient way to convert DateTime objects into datetime, * create alternate APIs

[Zope-dev] Re: Options replacing DateTime with datetime!?

2007-08-26 Thread Alexander Limi
On Sun, 26 Aug 2007 11:31:13 -0700, Andreas Jung [EMAIL PROTECTED] wrote: I would not care about some incompatibilities if people have the chance using the old version somehow (e.g. through a DT egg). +1, for what it's worth. ;) Dealing with the existing DateTime implementation has been pain

[Zope-dev] Re: Options replacing DateTime with datetime!?

2007-08-25 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andreas Jung wrote: Hi, perhaps the sun burned too long on my brain today but I investigated some options for replacing DateTime with Python's datetime module. Zope 3 uses datetime and we all know that the DateTime implementation sucks.

[Zope-dev] Re: Options replacing DateTime with datetime!?

2007-08-25 Thread Andreas Jung
--On 25. August 2007 12:33:41 -0400 Tres Seaver [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andreas Jung wrote: Hi, perhaps the sun burned too long on my brain today but I investigated some options for replacing DateTime with Python's datetime module. Zope 3

[Zope-dev] Re: Options replacing DateTime with datetime!?

2007-08-25 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andreas Jung wrote: --On 25. August 2007 12:33:41 -0400 Tres Seaver [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andreas Jung wrote: Hi, perhaps the sun burned too long on my brain today but I investigated some

[Zope-dev] Re: Options replacing DateTime with datetime!?

2007-08-25 Thread Philipp von Weitershausen
Tres Seaver wrote: Andreas Jung wrote: Hi, perhaps the sun burned too long on my brain today but I investigated some options for replacing DateTime with Python's datetime module. Zope 3 uses datetime and we all know that the DateTime implementation sucks. Especially the timezone