python datetime repository
peter at engcorp.com
Sat Apr 10 14:33:44 CEST 2004
Sakesun Roykiattisak wrote:
> During the moment of learning and using python + various API, I 've
> come across many kinds of datetime classes.
> python 2.3 datetime.datetime
> Zope's DateTime
> pyical's DateTime
> Anybody know any other python datetime class out there ? Just wonder if
> there are more.
> According to Bruce Eckel, "Python reduce clutter". Perhaps datetime
> clutter is badly need reduction.
The list above contains one platform-specific case which can't just be
made to disappear, and at least three types which predate the new
standard datetime module. I don't know what pyical is but I suspect
it's the same sort of thing.
The best way to reduce the clutter is merely to start using the
new datetime module where you can, and gradually refactor old
code where possible to use it.
Basically, "give folks a break, the standard datetime is new!"
More information about the Python-list