[Zope-dev] Re: Options replacing DateTime with datetime!?
lists at zopyx.com
Wed Sep 26 07:32:23 EDT 2007
--On 26. September 2007 11:08:23 +0100 Laurence Rowe <l at lrowe.co.uk> 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 issue in a reasonable
>> way :-)
> 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
> * Increase the resolution of DateTimes to microseconds
> * Modify the DateTime constructor to handle datetime objects
> * add an asdatetime method which will return a datetime object
> (avoiding any issues with floating point conversions).
The migration project is dead (for me)..too complex in order to do it right.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope-dev/attachments/20070926/7f8bee48/attachment.bin
More information about the Zope-Dev