[Zope-dev] Re: Options replacing DateTime with datetime!?
Wichert Akkerman
wichert at wiggy.net
Wed Sep 26 16:38:32 EDT 2007
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
> >microseconds. I propose:
> >
> > * 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).
> >
> >If there is support for this I will supply a patch.
>
> Sounds as a good first step.
>
> Why do you need a microsecond resolution?
Performance benchmarks, small timeouts.
Wichert.
--
Wichert Akkerman <wichert at wiggy.net> It is simple to make things.
http://www.wiggy.net/ It is hard to make things simple.
More information about the Zope-Dev
mailing list